Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6d6bb1bf
authored
Mar 26, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(venus-usedcar-h5): 检测报告详情功能开发
1 parent
36f81cbd
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
2225 additions
and
380 deletions
apps/web/venus-usedcar-quality/package.json
apps/web/venus-usedcar-quality/src/api/modules/inspect-report.ts
apps/web/venus-usedcar-quality/src/router/index.ts
apps/web/venus-usedcar-quality/src/router/routes.ts
apps/web/venus-usedcar-quality/src/views/home/index.vue
apps/web/venus-usedcar-quality/src/views/inspect-detail/index.vue
apps/web/venus-usedcar-quality/src/views/inspect-report/index.vue
apps/web/venus-usedcar-quality/vite.config.ts
pnpm-lock.yaml
venus-admin.code-workspace
apps/web/venus-usedcar-quality/package.json
View file @
6d6bb1b
...
...
@@ -11,11 +11,11 @@
"type-check"
:
"vue-tsc --noEmit"
},
"dependencies"
:
{
"axios"
:
"^1.12.2"
,
"@vueuse/core"
:
"catalog:"
,
"axios"
:
"^1.12.2"
,
"dayjs"
:
"catalog:"
,
"glsk-toolkit"
:
"catalog:"
,
"glsk-oss-jssdk"
:
"catalog:"
,
"glsk-toolkit"
:
"catalog:"
,
"pinia"
:
"catalog:"
,
"pinia-plugin-persistedstate"
:
"catalog:"
,
"tailwindcss"
:
"catalog:"
,
...
...
apps/web/venus-usedcar-quality/src/api/modules/inspect-report.ts
View file @
6d6bb1b
...
...
@@ -25,13 +25,13 @@ export interface InspectReportPageData<T> {
}
export
interface
InspectReportVehicleCover
{
uid
?:
string
|
number
;
uid
?:
number
|
string
;
name
?:
string
;
status
?:
string
;
url
?:
string
;
filePath
?:
string
;
thumbPath
?:
string
|
null
;
thumbUrl
?:
string
|
null
;
thumbPath
?:
null
|
string
;
thumbUrl
?:
null
|
string
;
size
?:
number
;
lastModified
?:
number
;
lastModifiedDate
?:
string
;
...
...
@@ -127,7 +127,7 @@ export interface InspectionNode {
options
?:
string
;
validationRules
?:
string
;
allowNoStructure
?:
number
;
existsDefaultValue
?:
string
|
number
;
existsDefaultValue
?:
number
|
string
;
defaultValue
?:
string
;
defaultType
?:
number
;
nodeLevel
:
number
;
...
...
@@ -158,7 +158,7 @@ export interface InspectionNodeResponse {
* 获取检测模板根节点(大项)
* @param taskId 检测工单ID
*/
export
function
getInspectionRootNodes
(
taskId
:
string
|
number
)
{
export
function
getInspectionRootNodes
(
taskId
:
number
|
string
)
{
return
get
<
InspectionNode
[]
>
(
`/rest/inspectionTemplate/
${
taskId
}
/rootNodes`
);
}
...
...
@@ -167,7 +167,7 @@ export function getInspectionRootNodes(taskId: string | number) {
* @param rootNodeId 根节点ID
* @param taskId 检测工单ID
*/
export
function
getInspectionChildren
(
rootNodeId
:
string
|
number
,
taskId
:
string
|
number
)
{
export
function
getInspectionChildren
(
rootNodeId
:
number
|
string
,
taskId
:
number
|
string
)
{
return
get
<
InspectionNode
[]
>
(
`/rest/inspectionNode/
${
rootNodeId
}
/children`
,
{
taskId
,
});
...
...
@@ -201,7 +201,7 @@ export interface InspectionTemplateDefaultData {
* 获取检测模板默认值(业务层已解包为 data 对象)
* @param taskId 检测工单ID
*/
export
function
getInspectionTemplateDefault
(
taskId
:
string
|
number
)
{
export
function
getInspectionTemplateDefault
(
taskId
:
number
|
string
)
{
return
post
<
InspectionTemplateDefaultData
>
(
`/rest/inspectionTemplate/default`
,
{
taskId
,
});
...
...
@@ -289,7 +289,168 @@ export interface InspectionRecordSaveParams {
* 保存/下一步
*/
export
function
saveInspectionRecord
(
params
:
InspectionRecordSaveParams
)
{
return
post
<
void
>
(
"/rest/inspectionRecord/save"
,
params
);
return
post
(
"/rest/inspectionRecord/save"
,
params
);
}
// ===== 检测记录详情 =====
export
interface
InspectionValueItem
{
id
:
number
;
resultId
:
number
;
nodeId
:
number
;
/** 交互类型,与叶子节点 interactionType 一致 */
interactionType
:
string
;
/** 值内容:图片时为 URL,文字时为文本,按钮选择时为选项 key */
valueText
:
null
|
string
;
valueKey
:
null
|
string
;
valueSeq
:
number
;
remark
:
null
|
string
;
}
export
interface
InspectionDetailResultVO
{
id
:
number
;
recordId
:
number
;
nodeId
:
number
;
nodeName
:
string
;
/** 完成标志:"0"-未完成,"1"-已完成 */
completedFlag
:
string
;
/** 结果状态:1-正常,2-故障,3-无此结构 */
resultStatus
:
1
|
2
|
3
;
remark
:
null
|
string
;
inspectionValueList
:
InspectionValueItem
[];
}
export
interface
InspectionNodeDetail
{
id
:
number
;
templateId
:
number
;
/** 父节点 ID,0 表示根节点 */
parentId
:
number
;
nodeName
:
string
;
/** 节点类型:1-模块,2-分组,3-叶子节点 */
nodeType
:
1
|
2
|
3
;
/** 展示节点名称:1-展示 0-不展示 */
showNodeName
:
string
;
/** 编辑权限,0 不可编辑,1 可编辑 */
editPermission
:
string
;
/** 展现模式:1-列表表单,2-网格检测,3-区域分组,4-图片上传,5-基础信息,6-视频录制 */
displayMode
:
number
;
/** 检测项类型:1-基础字段,2-故障检测 */
itemType
:
number
;
interactionType
:
string
;
dataFormat
:
string
;
datePattern
:
string
;
reserved
:
string
;
placeholder
:
string
;
suffix
:
string
;
/** 是否必填:0-选填,1-必填 */
required
:
number
;
optionsJson
:
string
;
optionsSourceType
:
number
;
validationRules
:
string
;
options
:
string
;
/** 是否支持"无此结构":0-否,1-是 */
allowNoStructure
:
number
;
/** 是否存在默认值:1-存在 0-不存在 */
existsDefaultValue
:
string
;
defaultValue
:
string
;
defaultField
:
string
;
defaultExpr
:
string
;
/** 默认值类型:1-固定值,2-接口获取,3-表达式 */
defaultType
:
number
;
defaultConfig
:
string
;
maxCount
:
number
;
captureRequirement
:
string
;
maxKb
:
number
;
nodePath
:
string
;
/** 节点层级,根节点为 0 */
nodeLevel
:
number
;
sortOrder
:
number
;
/** 状态:0-禁用,1-启用 */
status
:
number
;
remark
:
string
;
createTime
:
string
;
updateTime
:
string
;
/** 失败数(异常) */
failNum
:
number
;
/** 成功数(正常) */
successNum
:
number
;
/** 无此结构数 */
noStructureNum
:
number
;
/** 嵌套子节点(nodeType=1→2→3 层级) */
childrenNodes
:
InspectionNodeDetail
[];
/** 叶子节点(nodeType=3)的检测结果,其他层级为 null */
inspectionResultVO
:
InspectionDetailResultVO
|
null
;
}
export
interface
FileInfo
{
uid
?:
string
;
name
?:
string
;
status
?:
string
;
response
?:
string
;
filePath
?:
string
;
url
?:
string
;
thumbPath
?:
string
;
thumbUrl
?:
string
;
percent
?:
number
;
size
?:
number
;
lastModified
?:
string
;
lastModifiedDate
?:
string
;
linkProps
?:
Record
<
string
,
unknown
>
;
}
export
interface
InspectionScoreVO
{
/** 外观评分 */
exteriorScore
?:
number
;
/** 外观评分依据 */
exteriorComment
?:
string
;
/** 骨架评级(A/B/C/D) */
skeletonLevel
?:
string
;
/** 骨架评级依据 */
skeletonComment
?:
string
;
/** 内饰评级(A/B/C/D) */
interiorLevel
?:
string
;
/** 内饰评级依据 */
interiorComment
?:
string
;
/** 综合评分 */
overallScore
?:
number
;
/** 综合评价 */
overallComment
?:
string
;
}
export
interface
DetailRes
{
id
?:
number
;
taskId
?:
number
;
cover
?:
FileInfo
;
albums
?:
FileInfo
[];
carSeriesId
?:
number
;
carSeriesName
?:
string
;
carTypeId
?:
number
;
carTypeName
?:
string
;
licensePlate
?:
string
;
registrationDate
?:
string
;
/** 表显里程,单位万公里 */
mileage
?:
string
;
emissionStandard
?:
string
;
displacement
?:
string
;
inspectionScoreVO
?:
InspectionScoreVO
;
inspectionNodeList
:
InspectionNodeDetail
[];
/** 整车外观视频 */
wholeCarAppearanceVideo
?:
string
;
/** 发动机工况视频 */
engineConditionVideo
?:
string
;
/** 尾气工况视频 */
tailGasConditionVideo
?:
string
;
/** 检测完成时间 */
inspectionCompletedTime
?:
string
;
}
/**
* 详情
* @param {number} recordId 检测记录id
* @returns {Promise<DetailRes>} 检测记录详情
*/
export
function
detail
(
recordId
:
number
):
Promise
<
DetailRes
>
{
return
get
<
DetailRes
>
(
`/rest/inspectionRecord/
${
recordId
}
/detail`
);
}
// ===== 完成检测(检测评分提交)=====
...
...
@@ -310,6 +471,6 @@ export interface CompleteInspectionParams {
* 完成检测(提交检测评分)
*/
export
function
completeInspection
(
params
:
CompleteInspectionParams
)
{
return
post
<
void
>
(
"/rest/inspectionRecord/completeInspection"
,
params
);
return
post
(
"/rest/inspectionRecord/completeInspection"
,
params
);
}
apps/web/venus-usedcar-quality/src/router/index.ts
View file @
6d6bb1b
import
{
createRouter
,
createWebHistory
}
from
"vue-router"
;
import
{
useUserStore
}
from
"@stores/modules/user.ts"
;
import
{
closeToast
,
showLoadingToast
}
from
"vant"
;
import
routes
from
"./routes.ts"
;
import
{
useUserStore
}
from
"@stores/modules/user.ts"
;
const
LOGIN_REDIRECT_KEY
=
"venus_usedcar_login_redirect"
;
...
...
@@ -19,7 +19,7 @@ const router = createRouter({
});
// 不需要登录的白名单路由
const
WHITE_LIST
:
string
[]
=
[
"/login"
]
;
const
WHITE_LIST
=
new
Set
([
"/inspect-detail"
,
"/inspect-report"
,
"/login"
])
;
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
const
userStore
=
useUserStore
();
...
...
@@ -50,7 +50,7 @@ router.beforeEach((to, from, next) => {
}
// 2. 没有 token 的情况
if
(
WHITE_LIST
.
include
s
(
to
.
path
))
{
if
(
WHITE_LIST
.
ha
s
(
to
.
path
))
{
next
();
return
;
}
...
...
apps/web/venus-usedcar-quality/src/router/routes.ts
View file @
6d6bb1b
...
...
@@ -60,6 +60,24 @@ const routes: RouteRecordRaw[] = [
},
},
{
path
:
"/inspect-report"
,
name
:
"InspectReport"
,
component
:
()
=>
import
(
"@views/inspect-report/index.vue"
),
meta
:
{
title
:
"检测报告"
,
showTabBar
:
false
,
},
},
{
path
:
"/inspect-detail"
,
name
:
"InspectDetail"
,
component
:
()
=>
import
(
"@views/inspect-detail/index.vue"
),
meta
:
{
title
:
"检测详情"
,
showTabBar
:
false
,
},
},
{
path
:
"/:pathMatch(.*)*"
,
name
:
"NotFound"
,
component
:
()
=>
import
(
"@views/404/index.vue"
),
...
...
apps/web/venus-usedcar-quality/src/views/home/index.vue
View file @
6d6bb1b
...
...
@@ -178,9 +178,11 @@ function viewWorkOrder(item: WorkOrderItem) {
void
router
.
push
({
name
:
"CarDetail"
,
params
:
{
id
:
item
.
id
}
});
}
function
viewReport
(
_item
:
WorkOrderItem
)
{
showToast
(
"查看报告"
);
void
router
.
push
({
name
:
"CarList"
});
function
viewReport
(
item
:
WorkOrderItem
)
{
void
router
.
push
({
name
:
"InspectReport"
,
query
:
{
recordId
:
item
.
id
},
});
}
function
showRejectReason
(
_item
:
WorkOrderItem
)
{
...
...
apps/web/venus-usedcar-quality/src/views/inspect-detail/index.vue
0 → 100644
View file @
6d6bb1b
<
script
setup
lang=
"ts"
>
import
type
{
InspectionDetailResultVO
,
InspectionNodeDetail
}
from
"@api/modules/inspect-report"
;
import
{
computed
,
onMounted
,
onUnmounted
,
ref
}
from
"vue"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
detail
}
from
"@api/modules/inspect-report"
;
interface
InspectItem
{
name
:
string
;
status
:
"abnormal"
|
"normal"
;
descriptions
:
string
[];
images
:
string
[];
videos
:
string
[];
}
interface
InspectCategory
{
name
:
string
;
totalCount
:
number
;
items
:
InspectItem
[];
}
interface
DisplayGroup
{
type
:
"abnormal"
|
"normal"
;
label
:
string
;
icon
:
string
;
iconColor
:
string
;
items
:
InspectItem
[];
}
const
MAX_VISIBLE
=
5
;
const
categories
=
ref
<
InspectCategory
[]
>
([]);
const
activeTab
=
ref
(
0
);
const
onlyAbnormal
=
ref
(
false
);
const
collapseState
=
ref
<
Record
<
string
,
boolean
>>
({});
/**
* 从叶子节点(nodeType=3)的 inspectionResultVO 中按 interactionType 分类提取:
* - 节点 interactionType 为 image_upload → 所有值为图片
* - 节点 interactionType 为 video_upload → 所有值为视频
* - 节点 interactionType 为 image_upload_and_button_select(混合)→
* 按每条 value 自身的 interactionType 区分:
* image_upload → 图片,button_select → 文字描述
* - 其他类型 → 文字描述
*/
function
extractLeafData
(
leaf
:
InspectionNodeDetail
,
):
{
descriptions
:
string
[];
images
:
string
[];
videos
:
string
[]
}
{
const
vo
:
InspectionDetailResultVO
|
null
=
leaf
.
inspectionResultVO
;
const
descriptions
:
string
[]
=
[];
const
images
:
string
[]
=
[];
const
videos
:
string
[]
=
[];
if
(
!
vo
?.
inspectionValueList
?.
length
)
return
{
descriptions
,
images
,
videos
};
const
nodeType
=
leaf
.
interactionType
;
const
suffix
=
leaf
.
suffix
||
""
;
for
(
const
val
of
vo
.
inspectionValueList
)
{
if
(
!
val
.
valueText
)
continue
;
switch
(
nodeType
)
{
case
"image_upload"
:
{
images
.
push
(
val
.
valueText
);
break
;
}
case
"image_upload_and_button_select"
:
{
// 混合节点:以每条 value 自身的 interactionType 为准
if
(
val
.
interactionType
===
"image_upload"
)
{
images
.
push
(
val
.
valueText
);
}
else
{
descriptions
.
push
(
val
.
valueText
+
suffix
);
}
break
;
}
case
"video_upload"
:
{
videos
.
push
(
val
.
valueText
);
break
;
}
default
:
{
descriptions
.
push
(
val
.
valueText
+
suffix
);
}
}
}
return
{
descriptions
,
images
,
videos
};
}
/**
* 将单个叶子节点(nodeType=3)转换为 InspectItem
*/
function
leafToItem
(
leaf
:
InspectionNodeDetail
):
InspectItem
{
const
vo
=
leaf
.
inspectionResultVO
;
const
resultStatus
=
vo
?.
resultStatus
??
1
;
const
{
descriptions
,
images
,
videos
}
=
extractLeafData
(
leaf
);
return
{
name
:
leaf
.
nodeName
,
status
:
resultStatus
===
2
?
"abnormal"
:
"normal"
,
descriptions
,
images
,
videos
,
};
}
/**
* 将接口返回的嵌套节点列表转换为页面所需的分类数据结构:
* - nodeType=1 节点作为 Tab 分类
* - 兼容两种层级结构:
* ① nodeType=1 → nodeType=2(中间分组)→ nodeType=3(叶子)
* ② nodeType=1 → nodeType=3(直接叶子,无中间层)
*/
function
buildCategories
(
nodes
:
InspectionNodeDetail
[]):
InspectCategory
[]
{
const
modules
=
nodes
.
filter
((
n
)
=>
n
.
nodeType
===
1
)
.
sort
((
a
,
b
)
=>
a
.
sortOrder
-
b
.
sortOrder
);
return
modules
.
map
((
mod
)
=>
{
const
children
=
(
mod
.
childrenNodes
??
[])
.
sort
((
a
,
b
)
=>
a
.
sortOrder
-
b
.
sortOrder
);
const
items
:
InspectItem
[]
=
[];
for
(
const
child
of
children
)
{
if
(
child
.
nodeType
===
3
)
{
// 情况②:nodeType=1 直接挂 nodeType=3,无中间层
items
.
push
(
leafToItem
(
child
));
}
else
{
// 情况①:nodeType=2 中间分组,展开其 nodeType=3 子节点
const
leafNodes
=
(
child
.
childrenNodes
??
[])
.
sort
((
a
,
b
)
=>
a
.
sortOrder
-
b
.
sortOrder
);
for
(
const
leaf
of
leafNodes
)
{
items
.
push
(
leafToItem
(
leaf
));
}
}
}
return
{
name
:
mod
.
nodeName
,
totalCount
:
(
mod
.
failNum
??
0
)
+
(
mod
.
successNum
??
0
)
+
(
mod
.
noStructureNum
??
0
),
items
,
};
});
}
const
displayCategories
=
computed
(()
=>
{
return
categories
.
value
.
map
((
cat
)
=>
{
const
abnormalItems
=
cat
.
items
.
filter
((
i
)
=>
i
.
status
===
"abnormal"
);
const
normalItems
=
cat
.
items
.
filter
((
i
)
=>
i
.
status
===
"normal"
);
const
groups
:
DisplayGroup
[]
=
[];
if
(
abnormalItems
.
length
>
0
)
{
groups
.
push
({
type
:
"abnormal"
,
label
:
"异常项"
,
icon
:
"warning-o"
,
iconColor
:
"#ee6723"
,
items
:
abnormalItems
,
});
}
if
(
!
onlyAbnormal
.
value
&&
normalItems
.
length
>
0
)
{
groups
.
push
({
type
:
"normal"
,
label
:
"正常项"
,
icon
:
"passed"
,
iconColor
:
"#07c160"
,
items
:
normalItems
,
});
}
return
{
name
:
cat
.
name
,
totalCount
:
cat
.
totalCount
,
groups
,
};
});
});
function
isExpanded
(
catIdx
:
number
,
type
:
string
)
{
const
key
=
`
${
catIdx
}
-
${
type
}
`
;
return
collapseState
.
value
[
key
]
!==
false
;
}
function
toggleCollapse
(
catIdx
:
number
,
type
:
string
)
{
const
key
=
`
${
catIdx
}
-
${
type
}
`
;
collapseState
.
value
[
key
]
=
!
isExpanded
(
catIdx
,
type
);
}
const
previewVisible
=
ref
(
false
);
const
previewImages
=
ref
<
string
[]
>
([]);
const
previewIndex
=
ref
(
0
);
function
onPreview
(
images
:
string
[],
index
:
number
)
{
previewImages
.
value
=
images
;
previewIndex
.
value
=
index
;
previewVisible
.
value
=
true
;
}
const
CDN_BASE
=
"https://img02.glsx.com.cn/weapp/resource/venus/web/venus-usedcar-quality"
;
const
CDN
=
{
fail
:
`
${
CDN_BASE
}
/fail.png`
,
success
:
`
${
CDN_BASE
}
/success.png`
,
};
// ===== 接口请求 =====
const
route
=
useRoute
();
const
loading
=
ref
(
false
);
async
function
fetchDetail
()
{
const
recordId
=
Number
(
route
.
query
.
recordId
);
if
(
!
recordId
)
return
;
loading
.
value
=
true
;
try
{
const
res
=
await
detail
(
recordId
);
console
.
log
(
"res:"
,
res
.
inspectionNodeList
);
categories
.
value
=
buildCategories
(
res
.
inspectionNodeList
??
[]);
}
finally
{
loading
.
value
=
false
;
}
}
const
stickyRef
=
ref
<
HTMLElement
|
null
>
(
null
);
const
sectionRefs
=
ref
<
HTMLElement
[]
>
([]);
// 是否处于程序化滚动中,锁定期间不更新 activeTab
let
scrollLocked
=
false
;
// 用于检测滚动停止的定时器
let
scrollEndTimer
:
null
|
ReturnType
<
typeof
setTimeout
>
=
null
;
function
setSectionRef
(
index
:
number
,
el
:
any
)
{
if
(
el
)
sectionRefs
.
value
[
index
]
=
el
as
HTMLElement
;
}
function
getStickyHeight
()
{
return
stickyRef
.
value
?.
offsetHeight
??
0
;
}
function
onClickTab
({
name
}:
{
name
:
number
|
string
})
{
const
index
=
Number
(
name
);
const
el
=
sectionRefs
.
value
[
index
];
if
(
!
el
)
return
;
scrollLocked
=
true
;
activeTab
.
value
=
index
;
window
.
scrollTo
({
top
:
el
.
offsetTop
-
getStickyHeight
(),
behavior
:
"smooth"
,
});
}
function
handleScroll
()
{
const
threshold
=
window
.
scrollY
+
getStickyHeight
()
+
1
;
let
active
=
0
;
for
(
let
i
=
sectionRefs
.
value
.
length
-
1
;
i
>=
0
;
i
--
)
{
const
el
=
sectionRefs
.
value
[
i
];
if
(
el
&&
el
.
offsetTop
<=
threshold
)
{
active
=
i
;
break
;
}
}
activeTab
.
value
=
active
;
}
let
rafId
=
0
;
function
onScroll
()
{
// 程序化滚动期间:每次 scroll 事件都重置 debounce 计时器
// 当滚动真正停止(无新 scroll 事件 150ms)才解锁并更新 tab
if
(
scrollLocked
)
{
if
(
scrollEndTimer
)
clearTimeout
(
scrollEndTimer
);
scrollEndTimer
=
setTimeout
(()
=>
{
scrollLocked
=
false
;
handleScroll
();
},
150
);
return
;
}
cancelAnimationFrame
(
rafId
);
rafId
=
requestAnimationFrame
(
handleScroll
);
}
onMounted
(()
=>
{
fetchDetail
();
window
.
addEventListener
(
"scroll"
,
onScroll
,
{
passive
:
true
});
});
onUnmounted
(()
=>
{
window
.
removeEventListener
(
"scroll"
,
onScroll
);
cancelAnimationFrame
(
rafId
);
if
(
scrollEndTimer
)
clearTimeout
(
scrollEndTimer
);
});
</
script
>
<
template
>
<div
class=
"inspect-detail-page"
>
<div
ref=
"stickyRef"
class=
"sticky-header"
>
<van-tabs
v-model:active=
"activeTab"
@
click-tab=
"onClickTab"
>
<van-tab
v-for=
"cat in displayCategories"
:key=
"cat.name"
:title=
"cat.name"
/>
</van-tabs>
<div
class=
"filter-bar"
>
<div
class=
"filter-toggle"
@
click=
"onlyAbnormal = !onlyAbnormal"
>
<span
class=
"toggle-dot"
:class=
"
{ active: onlyAbnormal }" />
<span
class=
"toggle-label"
>
仅看异常
</span>
</div>
</div>
</div>
<div
v-for=
"(cat, catIdx) in displayCategories"
:key=
"cat.name"
:ref=
"(el) => setSectionRef(catIdx, el)"
class=
"category-section"
>
<div
class=
"category-header"
>
<span
class=
"category-name"
>
{{
cat
.
name
}}
</span>
<span
class=
"category-count"
>
· 共
{{
cat
.
totalCount
}}
项
</span>
</div>
<template
v-if=
"cat.groups.length > 0"
>
<div
v-for=
"group in cat.groups"
:key=
"group.type"
class=
"group-card"
>
<div
class=
"group-header"
@
click=
"toggleCollapse(catIdx, group.type)"
>
<div
class=
"group-header__left"
>
<img
alt=
""
class=
"group-type-icon"
:src=
"group.type === 'abnormal' ? CDN.fail : CDN.success"
/>
<span
class=
"group-header__text"
>
{{
group
.
label
}}
·
{{
group
.
items
.
length
}}
</span>
</div>
<div
class=
"group-header__right"
>
<span>
{{
isExpanded
(
catIdx
,
group
.
type
)
?
'收起'
:
'展开'
}}
</span>
<van-icon
color=
"#969799"
:name=
"isExpanded(catIdx, group.type) ? 'arrow-up' : 'arrow-down'"
size=
"10"
/>
</div>
</div>
<div
v-show=
"isExpanded(catIdx, group.type)"
class=
"group-body"
>
<div
v-for=
"(item, idx) in group.items"
:key=
"idx"
class=
"inspect-item"
>
<div
class=
"item-name"
>
{{
item
.
name
}}
</div>
<div
v-if=
"item.descriptions.length > 0"
class=
"item-desc"
>
{{
item
.
descriptions
.
join
(
'、'
)
}}
</div>
<div
v-if=
"item.images.length > 0"
class=
"image-row"
>
<!-- 超过5张只渲染前5张,第5张叠加 +N 遮罩,N=隐藏数量 -->
<div
v-for=
"(img, imgIdx) in item.images.slice(0, MAX_VISIBLE)"
:key=
"imgIdx"
class=
"image-thumb"
@
click=
"onPreview(item.images, imgIdx)"
>
<van-image
fit=
"cover"
height=
"56"
radius=
"4"
:src=
"img"
width=
"56"
/>
<div
v-if=
"item.images.length > MAX_VISIBLE && imgIdx === MAX_VISIBLE - 1"
class=
"image-more-mask"
@
click
.
stop=
"onPreview(item.images, MAX_VISIBLE)"
>
+
{{
item
.
images
.
length
-
MAX_VISIBLE
}}
</div>
</div>
</div>
<!-- 视频回显 -->
<div
v-if=
"item.videos.length > 0"
class=
"video-row"
>
<div
v-for=
"(videoUrl, vIdx) in item.videos"
:key=
"vIdx"
class=
"video-thumb"
>
<video
class=
"video-player"
controls
playsinline
preload=
"metadata"
:src=
"videoUrl"
/>
</div>
</div>
</div>
</div>
</div>
</
template
>
<div
v-else
class=
"empty-tip"
>
暂无异常项
</div>
</div>
<van-image-preview
v-model:show=
"previewVisible"
:images=
"previewImages"
:start-position=
"previewIndex"
/>
</div>
</template>
<
style
lang=
"scss"
scoped
>
@use
"@assets/styles/variables"
as
*
;
.inspect-detail-page
{
min-height
:
100vh
;
padding-bottom
:
calc
(
40vh
+
env
(
safe-area-inset-bottom
));
background
:
#f2f3f7
;
}
.sticky-header
{
position
:
sticky
;
top
:
0
;
z-index
:
99
;
background
:
#fff
;
:deep(.van-tabs__content)
{
display
:
none
;
}
}
.filter-bar
{
display
:
flex
;
justify-content
:
flex-end
;
padding
:
$
spacing-sm
$
spacing-base
;
background
:
#fff
;
border-top
:
1px
solid
#f2f3f5
;
}
.filter-toggle
{
display
:
flex
;
gap
:
4px
;
align-items
:
center
;
font-size
:
$
font-size-sm
;
color
:
$
color-text-secondary
;
white-space
:
nowrap
;
cursor
:
pointer
;
user-select
:
none
;
}
.toggle-dot
{
flex-shrink
:
0
;
width
:
16px
;
height
:
16px
;
border
:
1.5px
solid
#dcdee0
;
border-radius
:
50%
;
transition
:
$
transition-fast
;
&.active
{
background
:
$
color-primary
;
border-color
:
$
color-primary
;
box-shadow
:
inset
0
0
0
2.5px
#fff
;
}
}
.toggle-label
{
line-height
:
1
;
}
.category-section
{
padding
:
$
spacing-md
$
spacing-base
;
border-radius
:
$
radius-md
;
}
.category-header
{
padding
:
12px
12px
4px
;
font-size
:
$
font-size-base
;
color
:
$
color-text-primary
;
background
:
linear-gradient
(
180deg
,
#185efe1
a
0%
,
#185efe00
100%
);
background-color
:
#fff
;
border-radius
:
4px
4px
0
0
;
}
.category-name
{
font-weight
:
700
;
}
.category-count
{
color
:
$
color-text-secondary
;
}
.group-card
{
//
margin-bottom
:
$
spacing-md
;
overflow
:
hidden
;
background
:
#fff
;
border-radius
:
0
0
4px
4px
;
&:last-child
{
margin-bottom
:
0
;
}
}
.group-header
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
$
spacing-md
$
spacing-base
;
cursor
:
pointer
;
user-select
:
none
;
&__left
{
display
:
flex
;
gap
:
6px
;
align-items
:
center
;
}
&
__text
{
font-size
:
$
font-size-base
;
color
:
$
color-text-primary
;
}
&
__right
{
display
:
flex
;
gap
:
4px
;
align-items
:
center
;
font-size
:
$
font-size-sm
;
color
:
$
color-text-placeholder
;
}
}
.group-type-icon
{
flex-shrink
:
0
;
width
:
16px
;
height
:
16px
;
object-fit
:
contain
;
}
.inspect-item
{
padding
:
$
spacing-md
$
spacing-base
;
border-top
:
1px
solid
#f2f3f5
;
}
.item-name
{
font-size
:
15px
;
//
font-size
:
$
font-size-base
;
font-weight
:
600
;
//
color
:
$
color-text-primary
;
color
:
#333
;
}
.item-desc
{
margin-top
:
4px
;
font-size
:
13px
;
line-height
:
1.6
;
//
font-size
:
$
font-size-sm
;
color
:
#999
;
}
.image-row
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
$
spacing-sm
;
margin-top
:
$
spacing-sm
;
}
.video-row
{
display
:
flex
;
flex-direction
:
column
;
gap
:
$
spacing-sm
;
margin-top
:
$
spacing-sm
;
}
.video-thumb
{
width
:
100%
;
overflow
:
hidden
;
background
:
#000
;
border-radius
:
$
radius-base
;
}
.video-player
{
display
:
block
;
width
:
100%
;
max-height
:
220px
;
object-fit
:
contain
;
border-radius
:
$
radius-base
;
}
.image-thumb
{
position
:
relative
;
flex-shrink
:
0
;
overflow
:
hidden
;
cursor
:
pointer
;
border-radius
:
$
radius-sm
;
}
.image-more-mask
{
position
:
absolute
;
inset
:
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
15px
;
font-weight
:
600
;
color
:
#fff
;
cursor
:
pointer
;
background
:
rgb
(
0
0
0
/
55%
);
border-radius
:
$
radius-sm
;
}
.empty-tip
{
padding
:
$
spacing-xxl
;
font-size
:
$
font-size-sm
;
color
:
$
color-text-placeholder
;
text-align
:
center
;
background-color
:
#fff
;
}
</
style
>
apps/web/venus-usedcar-quality/src/views/inspect-report/index.vue
0 → 100644
View file @
6d6bb1b
<
script
setup
lang=
"ts"
>
import
type
{
FileInfo
,
InspectionNodeDetail
}
from
"@api/modules/inspect-report"
;
import
{
computed
,
nextTick
,
onMounted
,
ref
}
from
"vue"
;
import
{
useRoute
,
useRouter
}
from
"vue-router"
;
import
{
detail
}
from
"@api/modules/inspect-report"
;
const
route
=
useRoute
();
const
router
=
useRouter
();
function
goToInspectDetail
()
{
const
id
=
Number
(
route
.
query
.
recordId
);
if
(
!
id
)
return
;
void
router
.
push
({
name
:
"InspectDetail"
,
query
:
{
recordId
:
String
(
id
)
},
});
}
const
CDN_BASE
=
"https://img02.glsx.com.cn/weapp/resource/venus/web/venus-usedcar-quality"
;
const
CDN
=
{
bg
:
`
${
CDN_BASE
}
/bg.png`
,
certification
:
`
${
CDN_BASE
}
/Certification.png`
,
certificationIcon
:
`
${
CDN_BASE
}
/CertificationIcon.png`
,
fail
:
`
${
CDN_BASE
}
/fail.png`
,
success
:
`
${
CDN_BASE
}
/success.png`
,
rightArrow
:
`
${
CDN_BASE
}
/rightarrow.png`
,
};
const
reportData
=
ref
({
carName
:
""
,
licensePlate
:
""
,
vin
:
""
,
coverUrl
:
""
,
tags
:
[]
as
{
text
:
string
;
type
:
string
}[],
registrationDate
:
""
,
mileage
:
""
,
displacement
:
""
,
overallScore
:
0
,
scoreLevel
:
""
,
appearanceScore
:
0
,
skeletonLevel
:
""
,
interiorLevel
:
""
,
hasAccident
:
false
,
hasFire
:
false
,
hasFlood
:
false
,
scoreDescriptions
:
[]
as
{
label
:
string
;
text
:
string
}[],
totalInspectItems
:
0
,
inspectDetails
:
[]
as
{
failNum
:
number
;
nodeName
:
string
;
successNum
:
number
;
}[],
inspectOrg
:
""
,
inspectDate
:
""
,
wholeCarAppearanceVideo
:
""
,
engineConditionVideo
:
""
,
tailGasConditionVideo
:
""
,
albums
:
[]
as
FileInfo
[],
});
// ===== 接口请求 =====
const
loading
=
ref
(
false
);
function
buildInspectDetails
(
nodes
:
InspectionNodeDetail
[])
{
return
nodes
.
filter
((
n
)
=>
n
.
nodeType
===
1
)
.
sort
((
a
,
b
)
=>
a
.
sortOrder
-
b
.
sortOrder
)
.
map
((
mod
)
=>
({
failNum
:
mod
.
failNum
??
0
,
nodeName
:
mod
.
nodeName
??
""
,
successNum
:
mod
.
successNum
??
0
,
}));
}
async
function
fetchDetail
()
{
const
recordId
=
Number
(
route
.
query
.
recordId
);
if
(
!
recordId
)
return
;
loading
.
value
=
true
;
try
{
const
res
=
await
detail
(
recordId
);
// 车辆基础信息
reportData
.
value
.
carName
=
(
res
.
carSeriesName
??
""
)
+
(
res
.
carTypeName
??
""
);
reportData
.
value
.
licensePlate
=
res
.
licensePlate
??
""
;
reportData
.
value
.
coverUrl
=
res
.
cover
?.
url
??
""
;
reportData
.
value
.
albums
=
res
.
albums
??
[];
reportData
.
value
.
registrationDate
=
res
.
registrationDate
??
""
;
reportData
.
value
.
mileage
=
res
.
mileage
??
""
;
reportData
.
value
.
displacement
=
res
.
displacement
??
""
;
reportData
.
value
.
inspectDate
=
res
.
inspectionCompletedTime
??
""
;
// 车况评分
const
score
=
res
.
inspectionScoreVO
;
if
(
score
)
{
const
overall
=
score
.
overallScore
??
0
;
// const overall = 20;
reportData
.
value
.
overallScore
=
overall
;
let
scoreLevel
=
"较差"
;
if
(
overall
>=
90
)
{
scoreLevel
=
"优秀"
;
}
else
if
(
overall
>=
75
)
{
scoreLevel
=
"良好"
;
}
else
if
(
overall
>=
60
)
{
scoreLevel
=
"一般"
;
}
reportData
.
value
.
scoreLevel
=
scoreLevel
;
reportData
.
value
.
appearanceScore
=
score
.
exteriorScore
??
0
;
reportData
.
value
.
skeletonLevel
=
score
.
skeletonLevel
??
""
;
reportData
.
value
.
interiorLevel
=
score
.
interiorLevel
??
""
;
reportData
.
value
.
scoreDescriptions
=
[
{
label
:
"外观"
,
text
:
score
.
exteriorComment
??
""
},
{
label
:
"骨架"
,
text
:
score
.
skeletonComment
??
""
},
{
label
:
"内饰"
,
text
:
score
.
interiorComment
??
""
},
{
label
:
"综合评价"
,
text
:
score
.
overallComment
??
""
},
].
filter
((
d
)
=>
d
.
text
);
}
// 检测详情
const
nodes
=
res
.
inspectionNodeList
??
[];
const
details
=
buildInspectDetails
(
nodes
);
reportData
.
value
.
inspectDetails
=
details
;
reportData
.
value
.
totalInspectItems
=
details
.
reduce
(
(
sum
,
d
)
=>
sum
+
d
.
failNum
+
d
.
successNum
,
0
,
);
reportData
.
value
.
wholeCarAppearanceVideo
=
res
.
wholeCarAppearanceVideo
??
""
;
reportData
.
value
.
engineConditionVideo
=
res
.
engineConditionVideo
??
""
;
reportData
.
value
.
tailGasConditionVideo
=
res
.
tailGasConditionVideo
??
""
;
}
finally
{
loading
.
value
=
false
;
}
}
/** 按 0–100 分档返回与环形得分条一致的主色 */
function
scoreTierColor
(
score
:
number
):
string
{
const
s
=
Math
.
min
(
100
,
Math
.
max
(
0
,
Number
(
score
)
||
0
));
if
(
s
>=
90
)
return
"#27CD5A"
;
if
(
s
>=
75
)
return
"#7DC940"
;
if
(
s
>=
60
)
return
"#F7D944"
;
if
(
s
>=
40
)
return
"#FF9800"
;
return
"#EF3A3A"
;
}
/** 骨架/内饰等级 A–D,用虚拟分数走 scoreTierColor,与数字分档同色 */
function
gradeLetterColor
(
level
:
string
):
string
{
const
c
=
level
.
trim
().
charAt
(
0
).
toUpperCase
();
if
(
!
c
)
return
"#969799"
;
const
tierScore
:
Record
<
string
,
number
>
=
{
A
:
95
,
B
:
80
,
C
:
50
,
D
:
20
,
};
const
pseudo
=
tierScore
[
c
];
if
(
pseudo
===
undefined
)
return
"#969799"
;
return
scoreTierColor
(
pseudo
);
}
const
scoreColor
=
computed
(()
=>
scoreTierColor
(
reportData
.
value
.
overallScore
),
);
const
appearanceScoreColor
=
computed
(()
=>
scoreTierColor
(
reportData
.
value
.
appearanceScore
),
);
const
skeletonLevelColor
=
computed
(()
=>
gradeLetterColor
(
reportData
.
value
.
skeletonLevel
),
);
const
interiorLevelColor
=
computed
(()
=>
gradeLetterColor
(
reportData
.
value
.
interiorLevel
),
);
/** 根据综合评分返回星数(1-5) */
const
scoreStars
=
computed
(()
=>
{
const
s
=
reportData
.
value
.
overallScore
;
if
(
s
>=
90
)
return
5
;
if
(
s
>=
75
)
return
4
;
if
(
s
>=
60
)
return
3
;
if
(
s
>=
40
)
return
2
;
return
1
;
});
/** 报告页检测详情模块仅展示前若干大类 */
const
inspectDetailsPreview
=
computed
(()
=>
reportData
.
value
.
inspectDetails
.
slice
(
0
,
6
),
);
/** 可预览的图库地址(按 albums 顺序) */
const
albumPreviewUrls
=
computed
(()
=>
reportData
.
value
.
albums
.
map
((
a
:
FileInfo
)
=>
a
.
url
??
""
)
.
filter
((
url
:
string
)
=>
url
.
length
>
0
),
);
const
canPreviewAlbum
=
computed
(()
=>
albumPreviewUrls
.
value
.
length
>
0
);
/** 封面图在图库中的起始下标,用于角标与预览 startPosition */
const
albumCoverStartIndex
=
computed
(()
=>
{
const
urls
=
albumPreviewUrls
.
value
;
const
cur
=
reportData
.
value
.
coverUrl
;
if
(
cur
===
""
||
urls
.
length
===
0
)
return
0
;
return
Math
.
max
(
0
,
urls
.
indexOf
(
cur
));
});
const
albumCountBadgeText
=
computed
(()
=>
{
const
urls
=
albumPreviewUrls
.
value
;
if
(
urls
.
length
===
0
)
return
""
;
return
`
${
albumCoverStartIndex
.
value
+
1
}
/
${
urls
.
length
}
`
;
});
const
albumPreviewShow
=
ref
(
false
);
const
albumPreviewStartPosition
=
ref
(
0
);
function
onVehicleCoverClick
()
{
const
images
=
albumPreviewUrls
.
value
;
if
(
images
.
length
===
0
)
return
;
albumPreviewStartPosition
.
value
=
albumCoverStartIndex
.
value
;
albumPreviewShow
.
value
=
true
;
}
function
onAlbumPreviewShowUpdate
(
show
:
boolean
)
{
albumPreviewShow
.
value
=
show
;
}
/** 检测视频(仅包含接口返回了地址的项) */
const
inspectVideos
=
computed
(()
=>
{
const
d
=
reportData
.
value
;
const
list
:
{
label
:
string
;
url
:
string
}[]
=
[];
if
(
d
.
wholeCarAppearanceVideo
)
list
.
push
({
label
:
"整车外观视频"
,
url
:
d
.
wholeCarAppearanceVideo
,
});
if
(
d
.
engineConditionVideo
)
list
.
push
({
label
:
"发动机工况视频"
,
url
:
d
.
engineConditionVideo
,
});
if
(
d
.
tailGasConditionVideo
)
list
.
push
({
label
:
"尾气工况视频"
,
url
:
d
.
tailGasConditionVideo
,
});
return
list
;
});
const
videoSwipeAutoplayMs
=
computed
(()
=>
inspectVideos
.
value
.
length
>
1
?
4000
:
0
,
);
const
videoPosterUrl
=
computed
(()
=>
reportData
.
value
.
coverUrl
);
const
videoPlayerShow
=
ref
(
false
);
const
videoPlayerSrc
=
ref
(
""
);
const
videoPlayerRef
=
ref
<
HTMLVideoElement
|
null
>
(
null
);
function
openVideoPlayer
(
url
:
string
)
{
if
(
!
url
)
return
;
videoPlayerSrc
.
value
=
url
;
videoPlayerShow
.
value
=
true
;
void
nextTick
(()
=>
{
const
el
=
videoPlayerRef
.
value
;
if
(
!
el
)
return
;
el
.
currentTime
=
0
;
void
el
.
play
().
catch
(()
=>
{});
});
}
function
closeVideoPlayer
()
{
videoPlayerShow
.
value
=
false
;
const
el
=
videoPlayerRef
.
value
;
if
(
el
)
el
.
pause
();
videoPlayerSrc
.
value
=
""
;
}
const
FULL_ARC_DEG
=
270
;
const
ARC_COLOR_STOPS
=
[
{
angle
:
0
,
color
:
"#ef3a3a"
},
{
angle
:
90
,
color
:
"#f7a341"
},
{
angle
:
135
,
color
:
"#f7d944"
},
{
angle
:
200
,
color
:
"#7DC940"
},
{
angle
:
270
,
color
:
"#27CD5A"
},
];
/** conic-gradient 样式,按分数裁剪弧形填充角度 */
const
arcStyle
=
computed
(()
=>
{
const
fillAngle
=
(
reportData
.
value
.
overallScore
/
100
)
*
FULL_ARC_DEG
;
const
visible
=
ARC_COLOR_STOPS
.
filter
((
s
)
=>
s
.
angle
<=
fillAngle
);
const
stops
=
visible
.
map
((
s
)
=>
`
${
s
.
color
}
${
s
.
angle
}
deg`
).
join
(
", "
);
return
{
background
:
`conic-gradient(from 225deg,
${
stops
}
, transparent
${
fillAngle
}
deg, transparent 360deg)`
,
};
});
onMounted
(()
=>
{
fetchDetail
();
});
</
script
>
<
template
>
<div
class=
"report-page"
>
<!-- 顶部认证头 -->
<div
class=
"cert-header"
:style=
"
{ backgroundImage: `url(${CDN.bg})` }">
<div
class=
"cert-header__left"
>
<div
class=
"cert-logo"
>
<img
alt=
"认证"
class=
"cert-logo__img"
:src=
"CDN.certification"
/>
</div>
<div
class=
"cert-info"
>
<span
class=
"cert-title"
>
广联认证检测
</span>
<span
class=
"cert-sub"
>
官方认证
</span>
</div>
</div>
<!--
<span
class=
"cert-link"
>
查看资质
</span>
-->
</div>
<!-- 车辆信息卡片 -->
<div
class=
"vehicle-card"
>
<div
class=
"vehicle-card__top"
>
<div
class=
"vehicle-cover-wrap"
:class=
"
{ 'vehicle-cover-wrap--clickable': canPreviewAlbum }"
@click="onVehicleCoverClick">
<van-image
class=
"vehicle-cover"
fit=
"cover"
height=
"72"
radius=
"8"
:src=
"reportData.coverUrl"
width=
"76"
>
<template
#
error
>
<div
class=
"vehicle-cover__placeholder"
>
<van-icon
color=
"#dcdee0"
name=
"photo-o"
size=
"32"
/>
</div>
</
template
>
</van-image>
<span
v-if=
"albumCountBadgeText"
class=
"vehicle-cover__badge"
>
{{ albumCountBadgeText }}
</span>
</div>
<div
class=
"vehicle-info"
>
<div
class=
"vehicle-name"
>
{{ reportData.carName }}
</div>
<div
class=
"vehicle-plate"
>
<span>
{{ reportData.licensePlate }}
</span>
<span
class=
"vehicle-vin"
>
{{ reportData.vin }}
</span>
</div>
<div
class=
"vehicle-tags"
>
<img
alt=
"认证标签"
class=
"vehicle-tags__img"
:src=
"CDN.certificationIcon"
/>
</div>
</div>
</div>
<div
class=
"vehicle-specs"
>
<div
class=
"spec-item"
>
<span
class=
"spec-value"
>
{{ reportData.registrationDate }}
</span>
<span
class=
"spec-label"
>
首次上牌
</span>
</div>
<div
class=
"spec-divider"
/>
<div
class=
"spec-item"
>
<span
class=
"spec-value"
>
{{ reportData.mileage }}
</span>
<span
class=
"spec-label"
>
表显里程
</span>
</div>
<div
class=
"spec-divider"
/>
<div
class=
"spec-item"
>
<span
class=
"spec-value"
>
{{ reportData.displacement }}
</span>
<span
class=
"spec-label"
>
排量
</span>
</div>
</div>
</div>
<!-- 车况评分 -->
<div
class=
"section-card"
>
<div
class=
"section-header"
>
<div
class=
"section-title-bar"
>
<span
class=
"section-title"
>
车况评分
</span>
</div>
<div
class=
"risk-indicators"
>
<span
class=
"risk-item"
:class=
"{ active: reportData.hasAccident }"
>
<img
alt=
""
class=
"risk-icon"
:src=
"CDN.fail"
/>
事故
</span>
<span
class=
"risk-item"
:class=
"{ active: reportData.hasFire }"
>
<img
alt=
""
class=
"risk-icon"
:src=
"CDN.fail"
/>
火烧
</span>
<span
class=
"risk-item"
:class=
"{ active: reportData.hasFlood }"
>
<img
alt=
""
class=
"risk-icon"
:src=
"CDN.fail"
/>
水泡
</span>
</div>
</div>
<div
class=
"score-panel"
>
<div
class=
"score-circle"
>
<svg
class=
"score-ring"
viewBox=
"0 0 120 120"
>
<!-- 270° 灰色背景弧 -->
<circle
cx=
"60"
cy=
"60"
fill=
"none"
r=
"52"
stroke=
"#f0f0f0"
:stroke-dasharray=
"`${327 * 0.75} ${327 * 0.25}`"
stroke-linecap=
"round"
stroke-width=
"10"
transform=
"rotate(135 60 60)"
/>
</svg>
<div
class=
"score-arc-fg"
:style=
"arcStyle"
/>
<div
class=
"score-text"
>
<span
class=
"score-number"
:style=
"{ color: scoreColor }"
>
{{ reportData.overallScore }}
<small>
分
</small>
</span>
<span
class=
"score-level"
:style=
"{ color: scoreColor }"
>
{{ reportData.scoreLevel }}
</span>
<span
class=
"score-stars"
>
<
template
v-for=
"i in 5"
:key=
"i"
>
<em
v-if=
"i > scoreStars"
>
☆
</em>
<template
v-else
>
★
</
template
>
</template>
</span>
</div>
</div>
<div
class=
"score-details"
>
<div
class=
"score-detail-item"
>
<span
class=
"detail-value number"
:style=
"{ color: appearanceScoreColor }"
>
{{
reportData.appearanceScore
}}
</span>
<span
class=
"detail-label"
>
外观
</span>
</div>
<div
class=
"score-detail-item"
>
<span
class=
"detail-value grade"
:style=
"{ color: skeletonLevelColor }"
>
{{
reportData.skeletonLevel
}}
</span>
<span
class=
"detail-label"
>
骨架
</span>
</div>
<div
class=
"score-detail-item"
>
<span
class=
"detail-value grade"
:style=
"{ color: interiorLevelColor }"
>
{{
reportData.interiorLevel
}}
</span>
<span
class=
"detail-label"
>
内饰
</span>
</div>
</div>
</div>
<!-- 评分说明 -->
<div
class=
"score-desc"
>
<div
class=
"score-desc__title"
>
评分说明
</div>
<ul
class=
"score-desc__list"
>
<li
v-for=
"(desc, idx) in reportData.scoreDescriptions"
:key=
"idx"
>
<span
class=
"desc-label"
>
{{ desc.label }}:
</span>
{{ desc.text }}
</li>
</ul>
</div>
<div
class=
"score-link"
@
click=
"goToInspectDetail"
>
查看完整报告和损伤照片
<img
alt=
""
class=
"score-link__arrow"
:src=
"CDN.rightArrow"
/>
</div>
</div>
<!-- 检测详情 -->
<div
class=
"section-card"
>
<div
class=
"section-header"
>
<div
class=
"section-title-bar"
>
<span
class=
"section-title"
>
检测详情
</span>
</div>
<span
class=
"section-count"
>
共{{ reportData.totalInspectItems }}项
</span>
</div>
<div
class=
"inspect-list"
>
<div
v-for=
"(item, idx) in inspectDetailsPreview"
:key=
"idx"
class=
"inspect-row"
>
<span
class=
"inspect-name"
>
{{ item.nodeName }}
</span>
<div
class=
"inspect-stats"
>
<span
v-if=
"item.failNum > 0"
class=
"stat-abnormal"
>
<img
alt=
""
class=
"inspect-stats__icon"
:src=
"CDN.fail"
/>
异常 · {{ item.failNum }}
</span>
<span
class=
"stat-normal"
>
<img
alt=
""
class=
"inspect-stats__icon"
:src=
"CDN.success"
/>
正常 · {{ item.successNum }}
</span>
</div>
</div>
</div>
<div
class=
"score-link other-link"
@
click=
"goToInspectDetail"
>
查看完整报告和损伤照片
<img
alt=
""
class=
"score-link__arrow"
:src=
"CDN.rightArrow"
/>
</div>
<!-- <div class="inspect-more">
<van-button plain
round
size="small"
type="default"
@click="goToInspectDetail">
查看完整检测详情
</van-button>
</div> -->
</div>
<!-- 检测视频 -->
<div
v-if=
"inspectVideos.length > 0"
class=
"section-card"
>
<div
class=
"section-header"
>
<div
class=
"section-title-bar"
>
<span
class=
"section-title"
>
检测视频
</span>
</div>
</div>
<div
class=
"video-area"
>
<van-swipe
:autoplay=
"videoSwipeAutoplayMs"
class=
"video-swipe"
indicator-color=
"#fff"
:show-indicators=
"inspectVideos.length > 1"
:touchable=
"inspectVideos.length > 1"
>
<van-swipe-item
v-for=
"(v, vIdx) in inspectVideos"
:key=
"vIdx"
>
<div
class=
"video-cover video-cover--slide"
role=
"button"
@
click=
"openVideoPlayer(v.url)"
>
<van-image
fit=
"cover"
height=
"200"
radius=
"8"
:src=
"videoPosterUrl"
width=
"100%"
>
<
template
#
error
>
<div
class=
"video-cover__placeholder"
>
<van-icon
color=
"#dcdee0"
name=
"video-o"
size=
"48"
/>
</div>
</
template
>
</van-image>
<div
class=
"video-play-btn"
>
<van-icon
color=
"#fff"
name=
"play-circle-o"
size=
"48"
/>
</div>
<span
class=
"video-slide-label"
>
{{ v.label }}
</span>
</div>
</van-swipe-item>
</van-swipe>
</div>
<div
class=
"video-info"
>
<div
class=
"video-info__item"
>
<div
class=
"video-info__lead"
>
<span
class=
"video-info__mark"
>
*
</span>
<span
class=
"video-info__label"
>
检测机构:
</span>
</div>
<span
class=
"video-info__value"
>
广联认证
</span>
</div>
<div
class=
"video-info__item"
>
<div
class=
"video-info__lead"
>
<span
class=
"video-info__mark"
>
*
</span>
<span
class=
"video-info__label"
>
检测日期:
</span>
</div>
<span
class=
"video-info__value"
>
{{ reportData.inspectDate }}
</span>
</div>
</div>
</div>
<van-image-preview
closeable
:images=
"albumPreviewUrls"
:show=
"albumPreviewShow"
:start-position=
"albumPreviewStartPosition"
teleport=
"body"
@
update:show=
"onAlbumPreviewShowUpdate"
/>
<Teleport
to=
"body"
>
<div
v-show=
"videoPlayerShow"
class=
"video-player-overlay"
@
click
.
self=
"closeVideoPlayer"
>
<van-icon
class=
"video-player-close"
name=
"cross"
@
click=
"closeVideoPlayer"
/>
<video
ref=
"videoPlayerRef"
class=
"video-player-el"
controls
playsinline
:src=
"videoPlayerSrc"
/>
</div>
</Teleport>
</div>
</template>
<
style
lang=
"scss"
scoped
>
@use
"@assets/styles/variables"
as
*
;
.report-page
{
min-height
:
100vh
;
padding-bottom
:
calc
(
20px
+
env
(
safe-area-inset-bottom
));
background
:
#f2f3f7
;
}
//
=====
顶部认证头
=====
.cert-header
{
display
:
flex
;
//
height
:
236px
;
height
:
115px
;
//
align-items
:
center
;
//
justify-content
:
space-between
;
padding
:
12px
15px
;
//
padding
:
calc
(
env
(
safe-area-inset-top
)
+
12px
)
$
spacing-base
12px
;
background-color
:
#fff
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-size
:
cover
;
&__left
{
display
:
flex
;
//
align-items
:
center
;
gap
:
$
spacing-sm
;
}
}
.cert-logo
{
display
:
flex
;
flex-shrink
:
0
;
align-items
:
center
;
justify-content
:
center
;
width
:
40px
;
height
:
40px
;
&__img
{
width
:
100%
;
height
:
100%
;
object-fit
:
contain
;
}
}
.cert-info
{
display
:
flex
;
flex-direction
:
column
;
}
.cert-title
{
font-size
:
$
font-size-md
;
font-weight
:
700
;
color
:
$
color-text-primary
;
}
.cert-sub
{
font-size
:
$
font-size-sm
;
color
:
$
color-text-secondary
;
}
.cert-link
{
font-size
:
$
font-size-base
;
color
:
#2b6bff
;
cursor
:
pointer
;
}
//
=====
车辆信息卡片
=====
.vehicle-card
{
padding
:
$
spacing-base
;
margin
:
$
spacing-md
$
spacing-base
0
;
margin-top
:
-50px
;
background
:
#fff
;
border-radius
:
$
radius-md
;
&__top
{
display
:
flex
;
gap
:
$
spacing-md
;
}
}
.vehicle-cover-wrap
{
position
:
relative
;
flex-shrink
:
0
;
width
:
76px
;
height
:
72px
;
&--clickable
{
cursor
:
pointer
;
}
}
.vehicle-cover
{
flex-shrink
:
0
;
width
:
76px
;
height
:
72px
;
overflow
:
hidden
;
border-radius
:
$
radius-base
;
&__badge
{
position
:
absolute
;
right
:
9px
;
bottom
:
8px
;
z-index
:
1
;
padding
:
2px
7px
;
font-size
:
10px
;
line-height
:
1.2
;
color
:
#fff
;
pointer-events
:
none
;
background
:
rgb
(
0
0
0
/
62%
);
border-radius
:
999px
;
}
&
__placeholder
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
120px
;
height
:
80px
;
background
:
#f7f8fa
;
}
}
.vehicle-info
{
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
gap
:
6px
;
min-width
:
0
;
}
.vehicle-name
{
display
:
-webkit-box
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
font-size
:
$
font-size-base
;
font-weight
:
700
;
line-height
:
1.4
;
color
:
$
color-text-primary
;
-webkit-box-orient
:
vertical
;
}
.vehicle-plate
{
display
:
flex
;
gap
:
$
spacing-sm
;
align-items
:
center
;
font-size
:
$
font-size-sm
;
color
:
$
color-text-secondary
;
}
.vehicle-vin
{
color
:
$
color-text-disabled
;
}
.vehicle-tags
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
6px
;
&__img
{
height
:
20px
;
object-fit
:
contain
;
}
}
.vehicle-specs
{
display
:
flex
;
align-items
:
center
;
//
padding-top
:
$
spacing-md
;
padding
:
12px
0
;
margin-top
:
$
spacing-base
;
background
:
#f5f9ff
;
border-top
:
1px
solid
#f2f3f5
;
}
.spec-item
{
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
gap
:
4px
;
align-items
:
center
;
}
.spec-value
{
font-size
:
14px
;
font-weight
:
600
;
color
:
#333
;
//
color
:
$
color-text-primary
;
}
.spec-label
{
//
color
:
$
color-text-secondary
;
margin-top
:
-4px
;
font-size
:
$
font-size-xs
;
color
:
#999
;
}
.spec-divider
{
width
:
1px
;
height
:
20px
;
background
:
#d8d8d8
;
//
border
:
1px
solid
#d8d8d8
;
}
//
=====
通用
section
卡片
=====
.section-card
{
padding
:
$
spacing-base
;
margin
:
$
spacing-md
$
spacing-base
0
;
background
:
#fff
;
border-radius
:
$
radius-md
;
}
.section-header
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
$
spacing-base
;
margin
:
-
#{$
spacing-base
}
-
#
{
$spacing-base
}
$
spacing-base
;
margin-bottom
:
0
;
background
:
linear-gradient
(
180deg
,
#185efe1a
0
%,
#185efe00
100
%);
border-radius
:
$
radius-md
$
radius-md
0
0
;
}
.section-title-bar
{
display
:
flex
;
gap
:
$
spacing-sm
;
align-items
:
center
;
//
&::before
{
//
content
:
""
;
//
width
:
3px
;
//
height
:
16px
;
//
background
:
#4caf50
;
//
border-radius
:
2px
;
//
}
}
.section-title
{
font-size
:
$
font-size-md
;
font-weight
:
700
;
color
:
$
color-text-primary
;
}
.section-count
{
font-size
:
$
font-size-sm
;
color
:
$
color-text-secondary
;
}
//
=====
车况评分
=====
.risk-indicators
{
display
:
flex
;
gap
:
$
spacing-md
;
}
.risk-item
{
display
:
flex
;
gap
:
2px
;
align-items
:
center
;
font-size
:
$
font-size-sm
;
color
:
$
color-text-disabled
;
&.active
{
color
:
$
color-warning
;
}
}
.risk-icon
{
width
:
14px
;
height
:
14px
;
object-fit
:
contain
;
}
.score-panel
{
display
:
flex
;
gap
:
$
spacing-lg
;
align-items
:
center
;
padding
:
$
spacing-base
0
;
}
.score-circle
{
position
:
relative
;
flex-shrink
:
0
;
width
:
140px
;
height
:
140px
;
}
.score-ring
{
width
:
100%
;
height
:
100%
;
}
.score-arc-fg
{
position
:
absolute
;
inset
:
0
;
border-radius
:
50%
;
mask
:
radial-gradient
(
circle
at
center
,
transparent
54px
,
#000
56px
,
#000
65px
,
transparent
67px
);
}
.ring-bg
{
opacity
:
0.5
;
}
.score-text
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
width
:
92px
;
height
:
92px
;
background
:
#fff
;
border-radius
:
50%
;
box-shadow
:
0
0
6px
rgb
(
0
0
0
/
6%
);
transform
:
translate
(
-50%
,
-50%
);
}
.score-number
{
font-size
:
32px
;
font-weight
:
700
;
line-height
:
1
;
small
{
font-size
:
14px
;
font-weight
:
400
;
}
}
.score-level
{
margin-top
:
4px
;
font-size
:
$
font-size-sm
;
}
.score-stars
{
margin-top
:
2px
;
font-size
:
12px
;
color
:
#f5a623
;
letter-spacing
:
1px
;
em
{
font-style
:
normal
;
color
:
#dcdee0
;
}
}
.score-details
{
display
:
flex
;
flex
:
1
;
align-items
:
center
;
justify-content
:
space-around
;
}
.score-detail-item
{
display
:
flex
;
flex-direction
:
column
;
gap
:
4px
;
align-items
:
center
;
}
.detail-label
{
font-size
:
$
font-size-xs
;
color
:
$
color-text-secondary
;
}
.detail-value
{
font-size
:
24px
;
font-weight
:
700
;
}
//
=====
评分说明
=====
.score-desc
{
//
border
:
1px
solid
#ffe8b5
;
border
:
1px
solid
#e6ebf5
;
border-radius
:
$
radius-base
;
&__title
{
padding
:
10px
12px
;
//
margin-bottom
:
$
spacing-sm
;
padding-left
:
8px
;
font-size
:
$
font-size-base
;
font-weight
:
700
;
color
:
$
color-text-primary
;
background
:
linear-gradient
(
180deg
,
#fef5e0
0%
,
#fef5e000
100%
);
border-bottom
:
1px
solid
#e6ebf5
;
//
border-left
:
3px
solid
#ff9800
;
}
&
__list
{
list-style
:
none
;
//
padding
:
0
;
//
margin
:
0
;
li
{
position
:
relative
;
padding
:
11px
12px
11px
30px
;
font-size
:
$
font-size-sm
;
line-height
:
1.6
;
color
:
$
color-text-secondary
;
//
padding
:
$
spacing-md
0
$
spacing-md
12px
;
//
border-bottom
:
1px
solid
#fff0d6
;
border-bottom
:
1px
solid
#e6ebf5
;
&:last-child
{
border-bottom
:
none
;
}
&
::before
{
position
:
absolute
;
top
:
50%
;
left
:
17px
;
width
:
5px
;
height
:
5px
;
content
:
""
;
background
:
$
color-text-disabled
;
border-radius
:
50%
;
transform
:
translateY
(
-50%
);
}
}
}
.desc-label
{
color
:
$
color-text-primary
;
}
}
.score-link
{
display
:
flex
;
gap
:
4px
;
align-items
:
center
;
justify-content
:
center
;
padding
:
$
spacing-md
0
;
margin-top
:
$
spacing-base
;
font-size
:
12px
;
color
:
#666
;
cursor
:
pointer
;
//
font-size
:
$
font-size-base
;
//
color
:
$
color-text-primary
;
//
border
:
1px
solid
#e6ebf5
;
background
:
#f8f9fb
;
border-radius
:
$
radius-full
;
&__arrow
{
width
:
4.5px
;
height
:
8px
;
margin-left
:
2px
;
object-fit
:
contain
;
}
}
.other-link
{
position
:
relative
;
z-index
:
30
;
//
display
:
inline-block
;
//
background
:
#f8f9fb
;
//
color
:
#666666
;
//
font-size
:
12px
;
margin-top
:
-20px
;
}
//
=====
检测详情
=====
.inspect-list
{
display
:
flex
;
flex-direction
:
column
;
}
.inspect-row
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
$
spacing-md
0
;
border-bottom
:
1px
solid
#f2f3f5
;
&:last-child
{
position
:
relative
;
overflow
:
hidden
;
border-bottom
:
none
;
//
设计稿:上行文字清晰,越往下越淡、略带磨砂,与下方「查看详情」衔接
&::after
{
position
:
absolute
;
inset
:
0
;
z-index
:
1
;
pointer-events
:
none
;
content
:
""
;
background
:
linear-gradient
(
to
bottom
,
rgb
(
255
255
255
/
0%
)
0%
,
rgb
(
255
255
255
/
0%
)
42%
,
rgb
(
255
255
255
/
22%
)
62%
,
rgb
(
255
255
255
/
30%
)
78%
,
rgb
(
255
255
255
/
55%
)
100%
);
backdrop-filter
:
blur
(
1px
);
}
}
}
.inspect-name
{
font-size
:
$
font-size-base
;
font-weight
:
500
;
color
:
$
color-text-primary
;
}
.inspect-stats
{
display
:
flex
;
gap
:
$
spacing-base
;
align-items
:
center
;
&__icon
{
flex-shrink
:
0
;
width
:
14px
;
height
:
14px
;
object-fit
:
contain
;
}
}
.stat-abnormal
{
display
:
flex
;
gap
:
2px
;
align-items
:
center
;
font-size
:
$
font-size-sm
;
color
:
#666
;
//
color
:
$
color-warning
;
}
.stat-normal
{
display
:
flex
;
gap
:
2px
;
align-items
:
center
;
color
:
#666
;
}
.inspect-more
{
position
:
relative
;
display
:
flex
;
justify-content
:
center
;
padding-top
:
40px
;
&::before
{
position
:
absolute
;
top
:
0
;
right
:
0
;
left
:
0
;
height
:
40px
;
pointer-events
:
none
;
content
:
""
;
background
:
linear-gradient
(
0deg
,
#fff
0%
,
#fff0
100%
);
}
}
//
=====
检测视频
=====
.video-area
{
position
:
relative
;
//
margin-bottom
:
$
spacing-md
;
}
.video-swipe
{
overflow
:
hidden
;
border-radius
:
$
radius-base
;
:deep(.van-swipe__indicator)
{
opacity
:
0.65
;
}
:deep
(
.van-swipe__indicator--active
)
{
opacity
:
1
;
}
}
.video-cover
{
position
:
relative
;
overflow
:
hidden
;
border-radius
:
$
radius-base
;
&--slide
{
height
:
200px
;
touch-action
:
manipulation
;
cursor
:
pointer
;
}
&
__placeholder
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
100%
;
height
:
200px
;
background
:
#f7f8fa
;
}
}
.video-slide-label
{
position
:
absolute
;
bottom
:
25px
;
left
:
10px
;
z-index
:
1
;
max-width
:
calc
(
100%
-
20px
);
padding
:
4px
8px
;
font-size
:
11px
;
line-height
:
1.3
;
color
:
#fff
;
pointer-events
:
none
;
background
:
rgb
(
0
0
0
/
45%
);
border-radius
:
4px
;
}
.video-play-btn
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
56px
;
height
:
56px
;
cursor
:
pointer
;
background
:
rgb
(
0
0
0
/
30%
);
border-radius
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
.video-info
{
display
:
flex
;
flex-direction
:
column
;
gap
:
6px
;
&__item
{
display
:
grid
;
grid-template-columns
:
max-content
minmax
(
0
,
1
fr
);
column-gap
:
8px
;
align-items
:
start
;
font-size
:
$
font-size-sm
;
line-height
:
1.5
;
color
:
$
color-text-secondary
;
}
&
__lead
{
display
:
inline-flex
;
gap
:
2px
;
align-items
:
center
;
}
&
__mark
{
flex-shrink
:
0
;
margin-bottom
:
-6px
;
font-size
:
20px
;
line-height
:
1
;
color
:
$
color-text-disabled
;
}
&
__label
{
flex-shrink
:
0
;
color
:
inherit
;
}
&
__value
{
min-width
:
0
;
color
:
inherit
;
word-break
:
break-all
;
}
}
.video-player-overlay
{
position
:
fixed
;
inset
:
0
;
z-index
:
10000
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
padding
:
env
(
safe-area-inset-top
)
0
env
(
safe-area-inset-bottom
);
background
:
rgb
(
0
0
0
/
92%
);
}
.video-player-el
{
width
:
100%
;
max-height
:
85vh
;
outline
:
none
;
}
.video-player-close
{
position
:
absolute
;
top
:
calc
(
12px
+
env
(
safe-area-inset-top
));
right
:
12px
;
z-index
:
1
;
padding
:
8px
;
font-size
:
22px
;
color
:
#fff
;
cursor
:
pointer
;
}
</
style
>
apps/web/venus-usedcar-quality/vite.config.ts
View file @
6d6bb1b
import
{
dirname
,
resolve
}
from
"node:path"
;
import
process
from
"node:process"
;
import
{
fileURLToPath
}
from
"node:url"
;
import
vue
from
"@vitejs/plugin-vue"
;
// @ts-expect-error - no types provided
import
AutoImport
from
"unplugin-auto-import/vite"
;
import
Components
from
"unplugin-vue-components/vite"
;
import
{
VantResolver
}
from
"unplugin-vue-components/resolvers"
;
import
Components
from
"unplugin-vue-components/vite"
;
import
{
defineConfig
,
loadEnv
}
from
"vite"
;
// @ts-expect-error - no types provided
import
pxToViewport
from
"postcss-px-to-viewport-8-plugin"
;
const
__filename
=
fileURLToPath
(
import
.
meta
.
url
);
const
__dirname
=
dirname
(
__filename
);
const
PORT
=
8082
;
export
default
defineConfig
(({
mode
})
=>
{
const
env
=
loadEnv
(
mode
,
process
.
cwd
(),
"VITE_"
);
const
env
=
loadEnv
(
mode
,
process
.
cwd
(),
"VITE_"
);
return
{
plugins
:
[
vue
(),
AutoImport
({
imports
:
[
"vue"
,
"vue-router"
,
"pinia"
,
"@vueuse/core"
],
dts
:
"src/auto-imports.d.ts"
,
eslintrc
:
{
enabled
:
false
},
}),
Components
({
dts
:
"src/components.d.ts"
,
resolvers
:
[
VantResolver
()],
dirs
:
[
"src/components"
,
"src/layouts"
],
}),
],
return
{
plugins
:
[
vue
(),
AutoImport
({
imports
:
[
"vue"
,
"vue-router"
,
"pinia"
,
"@vueuse/core"
],
dts
:
"src/auto-imports.d.ts"
,
eslintrc
:
{
enabled
:
false
},
}),
Components
({
dts
:
"src/components.d.ts"
,
resolvers
:
[
VantResolver
()],
dirs
:
[
"src/components"
,
"src/layouts"
],
}),
],
resolve
:
{
alias
:
{
"@"
:
resolve
(
__dirname
,
"src"
),
"@assets"
:
resolve
(
__dirname
,
"src/assets"
),
"@views"
:
resolve
(
__dirname
,
"src/views"
),
"@components"
:
resolve
(
__dirname
,
"src/components"
),
"@stores"
:
resolve
(
__dirname
,
"src/stores"
),
"@utils"
:
resolve
(
__dirname
,
"src/utils"
),
"@api"
:
resolve
(
__dirname
,
"src/api"
),
"@composables"
:
resolve
(
__dirname
,
"src/composables"
),
},
},
resolve
:
{
alias
:
{
"@"
:
resolve
(
__dirname
,
"src"
),
"@assets"
:
resolve
(
__dirname
,
"src/assets"
),
"@views"
:
resolve
(
__dirname
,
"src/views"
),
"@components"
:
resolve
(
__dirname
,
"src/components"
),
"@stores"
:
resolve
(
__dirname
,
"src/stores"
),
"@utils"
:
resolve
(
__dirname
,
"src/utils"
),
"@api"
:
resolve
(
__dirname
,
"src/api"
),
"@composables"
:
resolve
(
__dirname
,
"src/composables"
),
},
},
css
:
{
preprocessorOptions
:
{
scss
:
{
api
:
"modern-compiler"
,
},
},
},
css
:
{
preprocessorOptions
:
{
scss
:
{
api
:
"modern-compiler"
,
},
},
},
server
:
{
port
:
PORT
,
host
:
true
,
proxy
:
{
"/api"
:
{
target
:
env
.
VITE_API_BASE_URL
||
"http://localhost:3000"
,
changeOrigin
:
true
,
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
api/
,
""
),
},
},
},
server
:
{
port
:
PORT
,
host
:
true
,
proxy
:
{
"/api"
:
{
target
:
env
.
VITE_API_BASE_URL
||
"http://localhost:3000"
,
changeOrigin
:
true
,
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
api/
,
""
),
},
},
},
build
:
{
target
:
"es2015"
,
outDir
:
"dist"
,
cssCodeSplit
:
true
,
rollupOptions
:
{
output
:
{
chunkFileNames
:
"assets/js/[name]-[hash].js"
,
entryFileNames
:
"assets/js/[name]-[hash].js"
,
assetFileNames
:
({
name
=
""
})
=>
{
if
(
/
\.(
png|jpe
?
g|gif|svg|webp|ico
)
$/
.
test
(
name
))
{
return
"assets/images/[name]-[hash].[ext]"
;
}
if
(
/
\.
css$/
.
test
(
name
))
{
return
"assets/css/[name]-[hash].[ext]"
;
}
return
"assets/[ext]/[name]-[hash].[ext]"
;
},
manualChunks
:
{
"vue-core"
:
[
"vue"
,
"vue-router"
,
"pinia"
],
vant
:
[
"vant"
],
},
},
},
},
build
:
{
target
:
"es2015"
,
outDir
:
"dist"
,
cssCodeSplit
:
true
,
rollupOptions
:
{
output
:
{
chunkFileNames
:
"assets/js/[name]-[hash].js"
,
entryFileNames
:
"assets/js/[name]-[hash].js"
,
assetFileNames
:
({
name
=
""
})
=>
{
if
(
/
\.(?:
png|jpe
?
g|gif|svg|webp|ico
)
$/
.
test
(
name
))
{
return
"assets/images/[name]-[hash].[ext]"
;
}
if
(
/
\.
css$/
.
test
(
name
))
{
return
"assets/css/[name]-[hash].[ext]"
;
}
return
"assets/[ext]/[name]-[hash].[ext]"
;
},
manualChunks
:
{
"vue-core"
:
[
"vue"
,
"vue-router"
,
"pinia"
],
vant
:
[
"vant"
],
},
},
},
},
optimizeDeps
:
{
include
:
[
"vue"
,
"vue-router"
,
"pinia"
,
"@vueuse/core"
,
"axios"
,
"dayjs"
],
},
};
optimizeDeps
:
{
include
:
[
"vue"
,
"vue-router"
,
"pinia"
,
"@vueuse/core"
,
"axios"
,
"dayjs"
],
},
};
});
pnpm-lock.yaml
View file @
6d6bb1b
...
...
@@ -741,10 +741,10 @@ importers:
version
:
24.10.4
'
@vitejs/plugin-vue'
:
specifier
:
'
catalog:'
version
:
6.0.3(vite@7.3.1(@types/node@24.10.4)(jiti@
2.6.1
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))(vue@3.5.26(typescript@5.9.3))
version
:
6.0.3(vite@7.3.1(@types/node@24.10.4)(jiti@
1.21.7
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))(vue@3.5.26(typescript@5.9.3))
'
@vitejs/plugin-vue-jsx'
:
specifier
:
'
catalog:'
version
:
5.1.3(vite@7.3.1(@types/node@24.10.4)(jiti@
2.6.1
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))(vue@3.5.26(typescript@5.9.3))
version
:
5.1.3(vite@7.3.1(@types/node@24.10.4)(jiti@
1.21.7
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))(vue@3.5.26(typescript@5.9.3))
typescript
:
specifier
:
'
catalog:'
version
:
5.9.3
...
...
@@ -756,10 +756,10 @@ importers:
version
:
0.26.0(@babel/parser@7.29.0)(rollup@4.55.1)(vue@3.5.26(typescript@5.9.3))
vite
:
specifier
:
^7.1.2
version
:
7.3.1(@types/node@24.10.4)(jiti@
2.6.1
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
version
:
7.3.1(@types/node@24.10.4)(jiti@
1.21.7
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
vite-plugin-qiankun
:
specifier
:
'
catalog:'
version
:
1.0.15(typescript@5.9.3)(vite@7.3.1(@types/node@24.10.4)(jiti@
2.6.1
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))
version
:
1.0.15(typescript@5.9.3)(vite@7.3.1(@types/node@24.10.4)(jiti@
1.21.7
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))
vue-tsc
:
specifier
:
'
catalog:'
version
:
2.2.10(typescript@5.9.3)
...
...
@@ -869,7 +869,7 @@ importers:
version
:
24.10.4
'
@vitejs/plugin-vue'
:
specifier
:
'
catalog:'
version
:
6.0.3(vite@7.3.1(@types/node@24.10.4)(jiti@
1.21.7
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))(vue@3.5.26(typescript@5.9.3))
version
:
6.0.3(vite@7.3.1(@types/node@24.10.4)(jiti@
2.6.1
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))(vue@3.5.26(typescript@5.9.3))
autoprefixer
:
specifier
:
'
catalog:'
version
:
10.4.23(postcss@8.5.6)
...
...
@@ -893,20 +893,11 @@ importers:
version
:
0.26.0(@babel/parser@7.29.0)(rollup@4.55.1)(vue@3.5.26(typescript@5.9.3))
vite
:
specifier
:
^7.1.2
version
:
7.3.1(@types/node@24.10.4)(jiti@
1.21.7
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
version
:
7.3.1(@types/node@24.10.4)(jiti@
2.6.1
)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
vue-tsc
:
specifier
:
'
catalog:'
version
:
2.2.10(typescript@5.9.3)
apps/web/venus-usedcar-quality/oss-sign-server
:
dependencies
:
ali-oss
:
specifier
:
^6.23.0
version
:
6.23.0
express
:
specifier
:
^4.21.2
version
:
4.22.1
docs
:
dependencies
:
vue
:
...
...
@@ -4618,10 +4609,6 @@ packages:
resolution
:
{
integrity
:
sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==
}
engines
:
{
node
:
'
>=6.5'
}
accepts@1.3.8
:
resolution
:
{
integrity
:
sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==
}
engines
:
{
node
:
'
>=
0.6'
}
acorn-globals@6.0.0
:
resolution
:
{
integrity
:
sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==
}
...
...
@@ -4782,9 +4769,6 @@ packages:
resolution
:
{
integrity
:
sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==
}
engines
:
{
node
:
'
>=8'
}
array-flatten@1.1.1
:
resolution
:
{
integrity
:
sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==
}
array-ify@1.0.0
:
resolution
:
{
integrity
:
sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==
}
...
...
@@ -4915,10 +4899,6 @@ packages:
birpc@2.9.0
:
resolution
:
{
integrity
:
sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==
}
body-parser@1.20.4
:
resolution
:
{
integrity
:
sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==
}
engines
:
{
node
:
'
>=
0.8'
,
npm
:
1.2.8000 || >= 1.4.16
}
boolbase@1.0.0
:
resolution
:
{
integrity
:
sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==
}
...
...
@@ -4968,10 +4948,6 @@ packages:
resolution
:
{
integrity
:
sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==
}
engines
:
{
node
:
'
>=18'
}
bytes@3.1.2
:
resolution
:
{
integrity
:
sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==
}
engines
:
{
node
:
'
>=
0.8'
}
c12@3.3.3
:
resolution
:
{
integrity
:
sha512-750hTRvgBy5kcMNPdh95Qo+XUBeGo8C7nsKSmedDmaQI+E0r82DwHeM6vBewDe4rGFbnxoa4V9pw+sPh5+Iz8Q==
}
peerDependencies
:
...
...
@@ -5271,10 +5247,6 @@ packages:
resolution
:
{
integrity
:
sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==
}
engines
:
{
node
:
^14.18.0 || >=16.10.0
}
content-disposition@0.5.4
:
resolution
:
{
integrity
:
sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==
}
engines
:
{
node
:
'
>=
0.6'
}
content-type@1.0.5
:
resolution
:
{
integrity
:
sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==
}
engines
:
{
node
:
'
>=
0.6'
}
...
...
@@ -5301,13 +5273,6 @@ packages:
cookie-es@2.0.0
:
resolution
:
{
integrity
:
sha512-RAj4E421UYRgqokKUmotqAwuplYw15qtdXfY+hGzgCJ/MBjCVZcSoHK/kH9kocfjRjcDME7IiDWR/1WX1TM2Pg==
}
cookie-signature@1.0.7
:
resolution
:
{
integrity
:
sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==
}
cookie@0.7.2
:
resolution
:
{
integrity
:
sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==
}
engines
:
{
node
:
'
>=
0.6'
}
copy-anything@4.0.5
:
resolution
:
{
integrity
:
sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==
}
engines
:
{
node
:
'
>=18'
}
...
...
@@ -5609,14 +5574,6 @@ packages:
de-indent@1.0.2
:
resolution
:
{
integrity
:
sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==
}
debug@2.6.9
:
resolution
:
{
integrity
:
sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
}
peerDependencies
:
supports-color
:
'
*'
peerDependenciesMeta
:
supports-color
:
optional
:
true
debug@4.4.3
:
resolution
:
{
integrity
:
sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==
}
engines
:
{
node
:
'
>=6.0'
}
...
...
@@ -6253,10 +6210,6 @@ packages:
resolution
:
{
integrity
:
sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==
}
engines
:
{
node
:
'
>=12.0.0'
}
express@4.22.1
:
resolution
:
{
integrity
:
sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==
}
engines
:
{
node
:
'
>=
0.10.0'
}
exsolve@1.0.8
:
resolution
:
{
integrity
:
sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==
}
...
...
@@ -6342,10 +6295,6 @@ packages:
resolution
:
{
integrity
:
sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
}
engines
:
{
node
:
'
>=8'
}
finalhandler@1.3.2
:
resolution
:
{
integrity
:
sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==
}
engines
:
{
node
:
'
>=
0.8'
}
find-cache-dir@3.3.2
:
resolution
:
{
integrity
:
sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==
}
engines
:
{
node
:
'
>=8'
}
...
...
@@ -6426,17 +6375,9 @@ packages:
formstream@1.5.2
:
resolution
:
{
integrity
:
sha512-NASf0lgxC1AyKNXQIrXTEYkiX99LhCEXTkiGObXAkpBui86a4u8FjH1o2bGb3PpqI3kafC+yw4zWeK6l6VHTgg==
}
forwarded@0.2.0
:
resolution
:
{
integrity
:
sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==
}
engines
:
{
node
:
'
>=
0.6'
}
fraction.js@5.3.4
:
resolution
:
{
integrity
:
sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==
}
fresh@0.5.2
:
resolution
:
{
integrity
:
sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==
}
engines
:
{
node
:
'
>=
0.6'
}
fresh@2.0.0
:
resolution
:
{
integrity
:
sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==
}
engines
:
{
node
:
'
>=
0.8'
}
...
...
@@ -6870,10 +6811,6 @@ packages:
resolution
:
{
integrity
:
sha512-T3VieIilNumOJCXI9SDgo4NnF6sZkd6XcmPi6qWtw4xqbt8nNz/ZVNiIH1L9puMTSHZh1mUWA4xKa2nWPF4NwQ==
}
engines
:
{
node
:
'
>=12.22.0'
}
ipaddr.js@1.9.1
:
resolution
:
{
integrity
:
sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==
}
engines
:
{
node
:
'
>=
0.10'
}
iron-webcrypto@1.2.1
:
resolution
:
{
integrity
:
sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==
}
...
...
@@ -7640,10 +7577,6 @@ packages:
mdn-data@2.25.0
:
resolution
:
{
integrity
:
sha512-T2LPsjgUE/tgMmRXREVmwsux89DwWfNjiynOeXuLd2mX6jphGQ2YE3Ukz7LQ2VOFKiVZU/Ee1GqzHiipZCjymw==
}
media-typer@0.3.0
:
resolution
:
{
integrity
:
sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==
}
engines
:
{
node
:
'
>=
0.6'
}
memoize-one@6.0.0
:
resolution
:
{
integrity
:
sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==
}
...
...
@@ -7665,10 +7598,6 @@ packages:
resolution
:
{
integrity
:
sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
}
engines
:
{
node
:
'
>=
8'
}
methods@1.1.2
:
resolution
:
{
integrity
:
sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==
}
engines
:
{
node
:
'
>=
0.6'
}
micromark-util-character@2.1.1
:
resolution
:
{
integrity
:
sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==
}
...
...
@@ -7704,11 +7633,6 @@ packages:
resolution
:
{
integrity
:
sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==
}
engines
:
{
node
:
'
>=18'
}
mime@1.6.0
:
resolution
:
{
integrity
:
sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==
}
engines
:
{
node
:
'
>=4'
}
hasBin
:
true
mime@2.6.0
:
resolution
:
{
integrity
:
sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==
}
engines
:
{
node
:
'
>=4.0.0'
}
...
...
@@ -7828,9 +7752,6 @@ packages:
resolution
:
{
integrity
:
sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==
}
engines
:
{
node
:
'
>=10'
}
ms@2.0.0
:
resolution
:
{
integrity
:
sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==
}
ms@2.1.3
:
resolution
:
{
integrity
:
sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
}
...
...
@@ -7870,10 +7791,6 @@ packages:
resolution
:
{
integrity
:
sha512-kKHJhxwpR/Okycz4HhQKKlhWe4ASEfPgkSWNmKFHd7+ezuQlxkA5cM3+XkBPvm1gmHen3w53qsYAv+8GwRrBlg==
}
engines
:
{
node
:
'
>=18'
}
negotiator@0.6.3
:
resolution
:
{
integrity
:
sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==
}
engines
:
{
node
:
'
>=
0.6'
}
nitropack@2.12.9
:
resolution
:
{
integrity
:
sha512-t6qqNBn2UDGMWogQuORjbL2UPevB8PvIPsPHmqvWpeGOlPr4P8Oc5oA8t3wFwGmaolM2M/s2SwT23nx9yARmOg==
}
engines
:
{
node
:
^20.19.0 || >=22.12.0
}
...
...
@@ -8205,9 +8122,6 @@ packages:
resolution
:
{
integrity
:
sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==
}
engines
:
{
node
:
20 || >=22
}
path-to-regexp@0.1.12
:
resolution
:
{
integrity
:
sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==
}
path-type@4.0.0
:
resolution
:
{
integrity
:
sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
}
engines
:
{
node
:
'
>=8'
}
...
...
@@ -9124,10 +9038,6 @@ packages:
proto-list@1.2.4
:
resolution
:
{
integrity
:
sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==
}
proxy-addr@2.0.7
:
resolution
:
{
integrity
:
sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==
}
engines
:
{
node
:
'
>=
0.10'
}
proxy-from-env@1.1.0
:
resolution
:
{
integrity
:
sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
}
...
...
@@ -9185,10 +9095,6 @@ packages:
resolution
:
{
integrity
:
sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
}
engines
:
{
node
:
'
>=
0.6'
}
raw-body@2.5.3
:
resolution
:
{
integrity
:
sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==
}
engines
:
{
node
:
'
>=
0.8'
}
rc9@2.1.2
:
resolution
:
{
integrity
:
sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==
}
...
...
@@ -9511,10 +9417,6 @@ packages:
engines
:
{
node
:
'
>=10'
}
hasBin
:
true
send@0.19.2
:
resolution
:
{
integrity
:
sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==
}
engines
:
{
node
:
'
>=
0.8.0'
}
send@1.2.1
:
resolution
:
{
integrity
:
sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==
}
engines
:
{
node
:
'
>=
18'
}
...
...
@@ -9525,10 +9427,6 @@ packages:
serve-placeholder@2.0.2
:
resolution
:
{
integrity
:
sha512-/TMG8SboeiQbZJWRlfTCqMs2DD3SZgWp0kDQePz9yUuCnDfDh/92gf7/PxGhzXTKBIPASIHxFcZndoNbp6QOLQ==
}
serve-static@1.16.3
:
resolution
:
{
integrity
:
sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==
}
engines
:
{
node
:
'
>=
0.8.0'
}
serve-static@2.2.1
:
resolution
:
{
integrity
:
sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==
}
engines
:
{
node
:
'
>=
18'
}
...
...
@@ -10210,10 +10108,6 @@ packages:
resolution
:
{
integrity
:
sha512-VCn+LMHbd4t6sF3wfU/+HKT63C9OoyrSIf4b+vtWHpt2U7/4InZG467YDNMFMR70DdHjAdpPWmw2lzRdg0Xqqg==
}
engines
:
{
node
:
'
>=20'
}
type-is@1.6.18
:
resolution
:
{
integrity
:
sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==
}
engines
:
{
node
:
'
>=
0.6'
}
typed-array-buffer@1.0.3
:
resolution
:
{
integrity
:
sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==
}
engines
:
{
node
:
'
>=
0.4'
}
...
...
@@ -10349,10 +10243,6 @@ packages:
resolution
:
{
integrity
:
sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==
}
engines
:
{
node
:
'
>=
10.0.0'
}
unpipe@1.0.0
:
resolution
:
{
integrity
:
sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==
}
engines
:
{
node
:
'
>=
0.8'
}
unplugin-auto-import@0.17.8
:
resolution
:
{
integrity
:
sha512-CHryj6HzJ+n4ASjzwHruD8arhbdl+UXvhuAIlHDs15Y/IMecG3wrf7FVg4pVH/DIysbq/n0phIjNHAjl7TG7Iw==
}
engines
:
{
node
:
'
>=14'
}
...
...
@@ -10505,19 +10395,11 @@ packages:
resolution
:
{
integrity
:
sha512-PYxZDA+6QtvRvm//++aGdmKG/cI07jNwbROz0Ql+VzFV1+Z0Dy55NI4zZ7RHc9KKpBePNFwoErqIuqQv/cjiTA==
}
engines
:
{
node
:
'
>=
0.12.0'
}
utils-merge@1.0.1
:
resolution
:
{
integrity
:
sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==
}
engines
:
{
node
:
'
>=
0.4.0'
}
vant@4.9.22
:
resolution
:
{
integrity
:
sha512-P2PDSj3oB6l3W1OpVlQpapeLmI6bXMSvPqPdrw5rutslC0Y6tSkrVB/iSD57weD7K92GsjGkvgDK0eZlOsXGqw==
}
peerDependencies
:
vue
:
^3.5.17
vary@1.1.2
:
resolution
:
{
integrity
:
sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==
}
engines
:
{
node
:
'
>=
0.8'
}
vfile-message@4.0.3
:
resolution
:
{
integrity
:
sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==
}
...
...
@@ -14173,6 +14055,18 @@ snapshots:
-
rollup
-
supports-color
'
@vitejs/plugin-vue-jsx@5.1.3(vite@7.3.1(@types/node@24.10.4)(jiti@1.21.7)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))(vue@3.5.26(typescript@5.9.3))'
:
dependencies
:
'
@babel/core'
:
7.28.5
'
@babel/plugin-syntax-typescript'
:
7.27.1(@babel/core@7.28.5)
'
@babel/plugin-transform-typescript'
:
7.28.5(@babel/core@7.28.5)
'
@rolldown/pluginutils'
:
1.0.0-beta.59
'
@vue/babel-plugin-jsx'
:
2.0.1(@babel/core@7.28.5)
vite
:
7.3.1(@types/node@24.10.4)(jiti@1.21.7)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
vue
:
3.5.26(typescript@5.9.3)
transitivePeerDependencies
:
-
supports-color
'
@vitejs/plugin-vue-jsx@5.1.3(vite@7.3.1(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))(vue@3.5.26(typescript@5.9.3))'
:
dependencies
:
'
@babel/core'
:
7.28.5
...
...
@@ -14631,11 +14525,6 @@ snapshots:
dependencies
:
event-target-shim
:
5.0.1
accepts@1.3.8
:
dependencies
:
mime-types
:
2.1.35
negotiator
:
0.6.3
acorn-globals@6.0.0
:
dependencies
:
acorn
:
7.4.1
...
...
@@ -14836,8 +14725,6 @@ snapshots:
array-differ@3.0.0
:
{}
array-flatten@1.1.1
:
{}
array-ify@1.0.0
:
{}
array-timsort@1.0.3
:
{}
...
...
@@ -14958,23 +14845,6 @@ snapshots:
birpc@2.9.0
:
{}
body-parser@1.20.4
:
dependencies
:
bytes
:
3.1.2
content-type
:
1.0.5
debug
:
2.6.9
depd
:
2.0.0
destroy
:
1.2.0
http-errors
:
2.0.1
iconv-lite
:
0.4.24
on-finished
:
2.4.1
qs
:
6.14.1
raw-body
:
2.5.3
type-is
:
1.6.18
unpipe
:
1.0.0
transitivePeerDependencies
:
-
supports-color
boolbase@1.0.0
:
{}
bowser@1.9.4
:
{}
...
...
@@ -15031,8 +14901,6 @@ snapshots:
dependencies
:
run-applescript
:
7.1.0
bytes@3.1.2
:
{}
c12@3.3.3(magicast@0.5.1)
:
dependencies
:
chokidar
:
5.0.0
...
...
@@ -15359,10 +15227,6 @@ snapshots:
consola@3.4.2
:
{}
content-disposition@0.5.4
:
dependencies
:
safe-buffer
:
5.2.1
content-type@1.0.5
:
{}
conventional-changelog-angular@7.0.0
:
...
...
@@ -15386,10 +15250,6 @@ snapshots:
cookie-es@2.0.0
:
{}
cookie-signature@1.0.7
:
{}
cookie@0.7.2
:
{}
copy-anything@4.0.5
:
dependencies
:
is-what
:
5.5.0
...
...
@@ -15762,10 +15622,6 @@ snapshots:
de-indent@1.0.2
:
{}
debug@2.6.9
:
dependencies
:
ms
:
2.0.0
debug@4.4.3
:
dependencies
:
ms
:
2.1.3
...
...
@@ -16521,42 +16377,6 @@ snapshots:
expect-type@1.3.0
:
{}
express@4.22.1
:
dependencies
:
accepts
:
1.3.8
array-flatten
:
1.1.1
body-parser
:
1.20.4
content-disposition
:
0.5.4
content-type
:
1.0.5
cookie
:
0.7.2
cookie-signature
:
1.0.7
debug
:
2.6.9
depd
:
2.0.0
encodeurl
:
2.0.0
escape-html
:
1.0.3
etag
:
1.8.1
finalhandler
:
1.3.2
fresh
:
0.5.2
http-errors
:
2.0.1
merge-descriptors
:
1.0.3
methods
:
1.1.2
on-finished
:
2.4.1
parseurl
:
1.3.3
path-to-regexp
:
0.1.12
proxy-addr
:
2.0.7
qs
:
6.14.1
range-parser
:
1.2.1
safe-buffer
:
5.2.1
send
:
0.19.2
serve-static
:
1.16.3
setprototypeof
:
1.2.0
statuses
:
2.0.2
type-is
:
1.6.18
utils-merge
:
1.0.1
vary
:
1.1.2
transitivePeerDependencies
:
-
supports-color
exsolve@1.0.8
:
{}
extend-shallow@2.0.1
:
...
...
@@ -16630,18 +16450,6 @@ snapshots:
dependencies
:
to-regex-range
:
5.0.1
finalhandler@1.3.2
:
dependencies
:
debug
:
2.6.9
encodeurl
:
2.0.0
escape-html
:
1.0.3
on-finished
:
2.4.1
parseurl
:
1.3.3
statuses
:
2.0.2
unpipe
:
1.0.0
transitivePeerDependencies
:
-
supports-color
find-cache-dir@3.3.2
:
dependencies
:
commondir
:
1.0.1
...
...
@@ -16742,12 +16550,8 @@ snapshots:
node-hex
:
1.0.1
pause-stream
:
0.0.11
forwarded@0.2.0
:
{}
fraction.js@5.3.4
:
{}
fresh@0.5.2
:
{}
fresh@2.0.0
:
{}
fs-extra@10.1.0
:
...
...
@@ -17173,6 +16977,7 @@ snapshots:
iconv-lite@0.4.24
:
dependencies
:
safer-buffer
:
2.1.2
optional
:
true
iconv-lite@0.6.3
:
dependencies
:
...
...
@@ -17251,8 +17056,6 @@ snapshots:
transitivePeerDependencies
:
-
supports-color
ipaddr.js@1.9.1
:
{}
iron-webcrypto@1.2.1
:
{}
is-array-buffer@3.0.5
:
...
...
@@ -17952,8 +17755,6 @@ snapshots:
mdn-data@2.25.0
:
{}
media-typer@0.3.0
:
{}
memoize-one@6.0.0
:
{}
meow@12.1.1
:
{}
...
...
@@ -17966,8 +17767,6 @@ snapshots:
merge2@1.4.1
:
{}
methods@1.1.2
:
{}
micromark-util-character@2.1.1
:
dependencies
:
micromark-util-symbol
:
2.0.1
...
...
@@ -18002,8 +17801,6 @@ snapshots:
dependencies
:
mime-db
:
1.54.0
mime@1.6.0
:
{}
mime@2.6.0
:
{}
mime@3.0.0
:
{}
...
...
@@ -18106,8 +17903,6 @@ snapshots:
mrmime@2.0.1
:
{}
ms@2.0.0
:
{}
ms@2.1.3
:
{}
muggle-string@0.4.1
:
{}
...
...
@@ -18138,8 +17933,6 @@ snapshots:
natural-orderby@5.0.0
:
{}
negotiator@0.6.3
:
{}
nitropack@2.12.9(xml2js@0.6.2)
:
dependencies
:
'
@cloudflare/kv-asset-handler'
:
0.4.1
...
...
@@ -18565,8 +18358,6 @@ snapshots:
lru-cache
:
11.2.4
minipass
:
7.1.2
path-to-regexp@0.1.12
:
{}
path-type@4.0.0
:
{}
path-type@6.0.0
:
{}
...
...
@@ -19454,11 +19245,6 @@ snapshots:
proto-list@1.2.4
:
{}
proxy-addr@2.0.7
:
dependencies
:
forwarded
:
0.2.0
ipaddr.js
:
1.9.1
proxy-from-env@1.1.0
:
{}
psl@1.15.0
:
...
...
@@ -19531,13 +19317,6 @@ snapshots:
range-parser@1.2.1
:
{}
raw-body@2.5.3
:
dependencies
:
bytes
:
3.1.2
http-errors
:
2.0.1
iconv-lite
:
0.4.24
unpipe
:
1.0.0
rc9@2.1.2
:
dependencies
:
defu
:
6.1.4
...
...
@@ -19910,24 +19689,6 @@ snapshots:
semver@7.7.4
:
{}
send@0.19.2
:
dependencies
:
debug
:
2.6.9
depd
:
2.0.0
destroy
:
1.2.0
encodeurl
:
2.0.0
escape-html
:
1.0.3
etag
:
1.8.1
fresh
:
0.5.2
http-errors
:
2.0.1
mime
:
1.6.0
ms
:
2.1.3
on-finished
:
2.4.1
range-parser
:
1.2.1
statuses
:
2.0.2
transitivePeerDependencies
:
-
supports-color
send@1.2.1
:
dependencies
:
debug
:
4.4.3
...
...
@@ -19952,15 +19713,6 @@ snapshots:
dependencies
:
defu
:
6.1.4
serve-static@1.16.3
:
dependencies
:
encodeurl
:
2.0.0
escape-html
:
1.0.3
parseurl
:
1.3.3
send
:
0.19.2
transitivePeerDependencies
:
-
supports-color
serve-static@2.2.1
:
dependencies
:
encodeurl
:
2.0.0
...
...
@@ -20765,11 +20517,6 @@ snapshots:
dependencies
:
tagged-tag
:
1.0.0
type-is@1.6.18
:
dependencies
:
media-typer
:
0.3.0
mime-types
:
2.1.35
typed-array-buffer@1.0.3
:
dependencies
:
call-bound
:
1.0.4
...
...
@@ -20966,8 +20713,6 @@ snapshots:
universalify@2.0.1
:
{}
unpipe@1.0.0
:
{}
unplugin-auto-import@0.17.8(@vueuse/core@13.9.0(vue@3.5.26(typescript@5.9.3)))(rollup@4.55.1)
:
dependencies
:
'
@antfu/utils'
:
0.7.10
...
...
@@ -21138,8 +20883,6 @@ snapshots:
mz
:
2.7.0
unescape
:
1.0.1
utils-merge@1.0.1
:
{}
vant@4.9.22(vue@3.5.26(typescript@5.9.3))
:
dependencies
:
'
@vant/popperjs'
:
1.3.0
...
...
@@ -21147,8 +20890,6 @@ snapshots:
'
@vue/shared'
:
3.5.29
vue
:
3.5.26(typescript@5.9.3)
vary@1.1.2
:
{}
vfile-message@4.0.3
:
dependencies
:
'
@types/unist'
:
3.0.3
...
...
@@ -21267,6 +21008,12 @@ snapshots:
transitivePeerDependencies
:
-
supports-color
vite-plugin-qiankun@1.0.15(typescript@5.9.3)(vite@7.3.1(@types/node@24.10.4)(jiti@1.21.7)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))
:
dependencies
:
cheerio
:
1.1.2
typescript
:
5.9.3
vite
:
7.3.1(@types/node@24.10.4)(jiti@1.21.7)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2)
vite-plugin-qiankun@1.0.15(typescript@5.9.3)(vite@7.3.1(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.97.2)(terser@5.44.1)(yaml@2.8.2))
:
dependencies
:
cheerio
:
1.1.2
...
...
venus-admin.code-workspace
View file @
6d6bb1b
...
...
@@ -5,12 +5,8 @@
"path": "apps/uniappX/uniapp-x-shop",
},
{
"name": "cool-unix",
"path": "apps/uniappX/uniapp-x-shop/uni_modules/cool-unix",
},
{
"name": "cool-unix-demo",
"path": "apps/uniappX/uniapp-x-shop/uni_modules/cool-unix/配置文件",
"name": "uniapp-x-tape",
"path": "apps/uniappX/uniapp-x-tape",
},
{
"name": "@venus/venus-agentic-assisant",
...
...
@@ -21,8 +17,8 @@
"path": "apps/web/venus-agentic/venus-agentic-base",
},
{
"name": "
@venus/car-life-system
",
"path": "apps/web/v
ue2/dj-car-life-system
",
"name": "
venus-usedcar-h5
",
"path": "apps/web/v
enus-usedcar-quality
",
},
{
"name": "@venus/docs",
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment