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 3baa379a
authored
Mar 26, 2026
by
chenwq1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 跳转回列表
1 parent
9ffb01a2
Pipeline
#129
for
3baa379a
failed
in 0 seconds
Changes
32
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
383 additions
and
343 deletions
apps/web/venus-usedcar-quality/eslint.config.mjs
apps/web/venus-usedcar-quality/package.json
apps/web/venus-usedcar-quality/src/api/modules/car.ts
apps/web/venus-usedcar-quality/src/api/modules/inspect-report/inspect-report.ts
apps/web/venus-usedcar-quality/src/api/modules/inspect-report/page.ts
apps/web/venus-usedcar-quality/src/api/modules/inspect-report/record.ts
apps/web/venus-usedcar-quality/src/api/modules/inspect-report/template.ts
apps/web/venus-usedcar-quality/src/api/modules/user.ts
apps/web/venus-usedcar-quality/src/api/modules/work-order.ts
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelect.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelectAndImageUpload.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/radioSelect.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDatePicker.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDropdown.vue
apps/web/venus-usedcar-quality/src/composables/useRequest.ts
apps/web/venus-usedcar-quality/src/stores/modules/user.ts
apps/web/venus-usedcar-quality/src/types/api.ts
apps/web/venus-usedcar-quality/src/types/global.d.ts
apps/web/venus-usedcar-quality/src/types/glsk-oss-jssdk.d.ts
apps/web/venus-usedcar-quality/src/types/views/car-detail.ts
apps/web/venus-usedcar-quality/src/types/views/car-list.ts
apps/web/venus-usedcar-quality/src/types/views/home.ts
apps/web/venus-usedcar-quality/src/types/views/work-order-detail.ts
apps/web/venus-usedcar-quality/src/utils/request.ts
apps/web/venus-usedcar-quality/src/views/car-detail/components/rating-guide-content.ts
apps/web/venus-usedcar-quality/src/views/car-detail/composables/useInspectSubmit.ts
apps/web/venus-usedcar-quality/src/views/car-detail/index.vue
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/tsconfig.json
apps/web/venus-usedcar-quality/eslint.config.mjs
0 → 100644
View file @
3baa379
// @ts-check
import { defineConfig } from "@venus/eslint-config";
export default defineConfig([
{
files: ["src/**/*.ts", "src/**/*.vue"],
languageOptions: {
parserOptions: {
project: ["./tsconfig.json"],
tsconfigRootDir: import.meta.dirname,
},
},
},
]);
apps/web/venus-usedcar-quality/package.json
View file @
3baa379
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
"dev"
:
"vite --host --port 8082"
,
"dev"
:
"vite --host --port 8082"
,
"build"
:
"vite build"
,
"build"
:
"vite build"
,
"preview"
:
"vite preview --port 8082"
,
"preview"
:
"vite preview --port 8082"
,
"type-check"
:
"vue-tsc --noEmit"
"type-check"
:
"vue-tsc --noEmit"
,
"lint"
:
"eslint
\"
src/**/*.{ts,vue}
\"
--fix --no-error-on-unmatched-pattern"
},
},
"dependencies"
:
{
"dependencies"
:
{
"@vueuse/core"
:
"catalog:"
,
"@vueuse/core"
:
"catalog:"
,
...
...
apps/web/venus-usedcar-quality/src/api/modules/car.ts
View file @
3baa379
...
@@ -3,31 +3,31 @@ import type { PageData } from "@utils/request.ts";
...
@@ -3,31 +3,31 @@ import type { PageData } from "@utils/request.ts";
import
{
get
,
post
}
from
"@utils/request.ts"
;
import
{
get
,
post
}
from
"@utils/request.ts"
;
export
interface
CarItem
{
export
interface
CarItem
{
id
:
number
;
title
:
string
;
brand
:
string
;
brand
:
string
;
model
:
string
;
year
:
number
;
mileage
:
number
;
price
:
number
;
city
:
string
;
city
:
string
;
coverImage
:
string
;
images
:
string
[];
transmission
:
string
;
displacement
:
string
;
color
:
string
;
color
:
string
;
coverImage
:
string
;
createdAt
:
string
;
createdAt
:
string
;
displacement
:
string
;
id
:
number
;
images
:
string
[];
mileage
:
number
;
model
:
string
;
price
:
number
;
tags
:
string
[];
tags
:
string
[];
title
:
string
;
transmission
:
string
;
year
:
number
;
}
}
export
interface
CarListParams
{
export
interface
CarListParams
{
page
?:
number
;
pageSize
?:
number
;
brand
?:
string
;
brand
?:
string
;
minPrice
?:
number
;
maxPrice
?:
number
;
city
?:
string
;
city
?:
string
;
keyword
?:
string
;
keyword
?:
string
;
maxPrice
?:
number
;
minPrice
?:
number
;
page
?:
number
;
pageSize
?:
number
;
sortBy
?:
"mileage_asc"
|
"newest"
|
"price_asc"
|
"price_desc"
;
sortBy
?:
"mileage_asc"
|
"newest"
|
"price_asc"
|
"price_desc"
;
}
}
...
...
apps/web/venus-usedcar-quality/src/api/modules/inspect-report/inspect-report.ts
View file @
3baa379
...
@@ -3,170 +3,170 @@
...
@@ -3,170 +3,170 @@
import
{
get
}
from
"@utils/request"
;
import
{
get
}
from
"@utils/request"
;
export
interface
FileInfo
{
export
interface
FileInfo
{
uid
?:
string
;
name
?:
string
;
status
?:
string
;
response
?:
string
;
filePath
?:
string
;
filePath
?:
string
;
url
?:
string
;
thumbPath
?:
string
;
thumbUrl
?:
string
;
percent
?:
number
;
size
?:
number
;
lastModified
?:
string
;
lastModified
?:
string
;
lastModifiedDate
?:
string
;
lastModifiedDate
?:
string
;
linkProps
?:
Record
<
string
,
unknown
>
;
linkProps
?:
Record
<
string
,
unknown
>
;
name
?:
string
;
percent
?:
number
;
response
?:
string
;
size
?:
number
;
status
?:
string
;
thumbPath
?:
string
;
thumbUrl
?:
string
;
uid
?:
string
;
url
?:
string
;
}
}
/** 检测记录详情中单条值(与详情接口字段对齐) */
/** 检测记录详情中单条值(与详情接口字段对齐) */
export
interface
InspectionDetailValueItem
{
export
interface
InspectionDetailValueItem
{
id
:
number
;
id
:
number
;
resultId
:
number
;
nodeId
:
number
;
/** 交互类型,与叶子节点 interactionType 一致 */
/** 交互类型,与叶子节点 interactionType 一致 */
interactionType
:
string
;
interactionType
:
string
;
/** 值内容:图片时为 URL,文字时为文本,按钮选择时为选项 key */
nodeId
:
number
;
valueText
:
null
|
string
;
remark
:
null
|
string
;
resultId
:
number
;
valueKey
:
null
|
string
;
valueKey
:
null
|
string
;
valueSeq
:
number
;
valueSeq
:
number
;
remark
:
null
|
string
;
/** 值内容:图片时为 URL,文字时为文本,按钮选择时为选项 key */
valueText
:
null
|
string
;
}
}
export
interface
InspectionDetailResultVO
{
export
interface
InspectionDetailResultVO
{
/** 完成标志:"0"-未完成,"1"-已完成 */
completedFlag
:
string
;
id
:
number
;
id
:
number
;
recordId
:
number
;
inspectionValueList
:
InspectionDetailValueItem
[]
;
nodeId
:
number
;
nodeId
:
number
;
nodeName
:
string
;
nodeName
:
string
;
/** 完成标志:"0"-未完成,"1"-已完成 */
recordId
:
number
;
completedFlag
:
string
;
remark
:
null
|
string
;
/** 结果状态:1-正常,2-故障,3-无此结构 */
/** 结果状态:1-正常,2-故障,3-无此结构 */
resultStatus
:
1
|
2
|
3
;
resultStatus
:
1
|
2
|
3
;
remark
:
null
|
string
;
inspectionValueList
:
InspectionDetailValueItem
[];
}
}
export
interface
InspectionNodeDetail
{
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-是 */
/** 是否支持"无此结构":0-否,1-是 */
allowNoStructure
:
number
;
allowNoStructure
:
number
;
/** 是否存在默认值:1-存在 0-不存在 */
captureRequirement
:
string
;
existsDefaultValue
:
string
;
/** 嵌套子节点(nodeType=1→2→3 层级) */
defaultValue
:
string
;
childrenNodes
:
InspectionNodeDetail
[];
defaultField
:
string
;
createTime
:
string
;
dataFormat
:
string
;
datePattern
:
string
;
defaultConfig
:
string
;
defaultExpr
:
string
;
defaultExpr
:
string
;
defaultField
:
string
;
/** 默认值类型:1-固定值,2-接口获取,3-表达式 */
/** 默认值类型:1-固定值,2-接口获取,3-表达式 */
defaultType
:
number
;
defaultType
:
number
;
defaultConfig
:
string
;
defaultValue
:
string
;
/** 展现模式:1-列表表单,2-网格检测,3-区域分组,4-图片上传,5-基础信息,6-视频录制 */
displayMode
:
number
;
/** 编辑权限,0 不可编辑,1 可编辑 */
editPermission
:
string
;
/** 是否存在默认值:1-存在 0-不存在 */
existsDefaultValue
:
string
;
/** 失败数(异常) */
failNum
:
number
;
id
:
number
;
/** 叶子节点(nodeType=3)的检测结果,其他层级为 null */
inspectionResultVO
:
InspectionDetailResultVO
|
null
;
interactionType
:
string
;
/** 检测项类型:1-基础字段,2-故障检测 */
itemType
:
number
;
maxCount
:
number
;
maxCount
:
number
;
captureRequirement
:
string
;
maxKb
:
number
;
maxKb
:
number
;
nodePath
:
string
;
/** 节点层级,根节点为 0 */
/** 节点层级,根节点为 0 */
nodeLevel
:
number
;
nodeLevel
:
number
;
nodeName
:
string
;
nodePath
:
string
;
/** 节点类型:1-模块,2-分组,3-叶子节点 */
nodeType
:
1
|
2
|
3
;
/** 无此结构数 */
noStructureNum
:
number
;
options
:
string
;
optionsJson
:
string
;
optionsSourceType
:
number
;
/** 父节点 ID,0 表示根节点 */
parentId
:
number
;
placeholder
:
string
;
remark
:
string
;
/** 是否必填:0-选填,1-必填 */
required
:
number
;
reserved
:
string
;
/** 展示节点名称:1-展示 0-不展示 */
showNodeName
:
string
;
sortOrder
:
number
;
sortOrder
:
number
;
/** 状态:0-禁用,1-启用 */
/** 状态:0-禁用,1-启用 */
status
:
number
;
status
:
number
;
remark
:
string
;
createTime
:
string
;
updateTime
:
string
;
/** 失败数(异常) */
failNum
:
number
;
/** 成功数(正常) */
/** 成功数(正常) */
successNum
:
number
;
successNum
:
number
;
/** 无此结构数 */
suffix
:
string
;
noStructureNum
:
number
;
templateId
:
number
;
/** 嵌套子节点(nodeType=1→2→3 层级) */
updateTime
:
string
;
childrenNodes
:
InspectionNodeDetail
[];
validationRules
:
string
;
/** 叶子节点(nodeType=3)的检测结果,其他层级为 null */
inspectionResultVO
:
InspectionDetailResultVO
|
null
;
}
}
/** 详情接口中的评分结构(与模板侧 `InspectionScoreVO` 区分,避免 barrel 重导出同名冲突) */
/** 详情接口中的评分结构(与模板侧 `InspectionScoreVO` 区分,避免 barrel 重导出同名冲突) */
export
interface
InspectionDetailScoreVO
{
export
interface
InspectionDetailScoreVO
{
/** 外观评分 */
exteriorScore
?:
number
;
/** 外观评分依据 */
/** 外观评分依据 */
exteriorComment
?:
string
;
exteriorComment
?:
string
;
/** 骨架评级(A/B/C/D) */
/** 外观评分 */
skeletonLevel
?:
string
;
exteriorScore
?:
number
;
/** 骨架评级依据 */
skeletonComment
?:
string
;
/** 内饰评级(A/B/C/D) */
interiorLevel
?:
string
;
/** 内饰评级依据 */
/** 内饰评级依据 */
interiorComment
?:
string
;
interiorComment
?:
string
;
/**
综合评分
*/
/**
内饰评级(A/B/C/D)
*/
overallScore
?:
number
;
interiorLevel
?:
string
;
/** 综合评价 */
/** 综合评价 */
overallComment
?:
string
;
overallComment
?:
string
;
/** 综合评分 */
overallScore
?:
number
;
/** 骨架评级依据 */
skeletonComment
?:
string
;
/** 骨架评级(A/B/C/D) */
skeletonLevel
?:
string
;
}
}
export
interface
FileInfo
{
export
interface
FileInfo
{
uid
?:
string
;
name
?:
string
;
status
?:
string
;
response
?:
string
;
filePath
?:
string
;
filePath
?:
string
;
url
?:
string
;
thumbPath
?:
string
;
thumbUrl
?:
string
;
percent
?:
number
;
size
?:
number
;
lastModified
?:
string
;
lastModified
?:
string
;
lastModifiedDate
?:
string
;
lastModifiedDate
?:
string
;
linkProps
?:
Record
<
string
,
unknown
>
;
linkProps
?:
Record
<
string
,
unknown
>
;
name
?:
string
;
percent
?:
number
;
response
?:
string
;
size
?:
number
;
status
?:
string
;
thumbPath
?:
string
;
thumbUrl
?:
string
;
uid
?:
string
;
url
?:
string
;
}
}
export
interface
DetailRes
{
export
interface
DetailRes
{
id
?:
number
;
taskId
?:
number
;
cover
?:
FileInfo
;
albums
?:
FileInfo
[];
albums
?:
FileInfo
[];
carSeriesId
?:
number
;
carSeriesId
?:
number
;
carSeriesName
?:
string
;
carSeriesName
?:
string
;
carTypeId
?:
number
;
carTypeId
?:
number
;
carTypeName
?:
string
;
carTypeName
?:
string
;
licensePlate
?:
string
;
cover
?:
FileInfo
;
registrationDate
?:
string
;
/** 表显里程,单位万公里 */
mileage
?:
string
;
emissionStandard
?:
string
;
displacement
?:
string
;
displacement
?:
string
;
inspectionScoreVO
?:
InspectionDetailScoreVO
;
emissionStandard
?:
string
;
inspectionNodeList
:
InspectionNodeDetail
[];
/** 整车外观视频 */
wholeCarAppearanceVideo
?:
string
;
/** 发动机工况视频 */
/** 发动机工况视频 */
engineConditionVideo
?:
string
;
engineConditionVideo
?:
string
;
/** 尾气工况视频 */
id
?:
number
;
tailGasConditionVideo
?:
string
;
/** 检测完成时间 */
/** 检测完成时间 */
inspectionCompletedTime
?:
string
;
inspectionCompletedTime
?:
string
;
inspectionNodeList
:
InspectionNodeDetail
[];
inspectionScoreVO
?:
InspectionDetailScoreVO
;
licensePlate
?:
string
;
/** 表显里程,单位万公里 */
mileage
?:
string
;
registrationDate
?:
string
;
/** 尾气工况视频 */
tailGasConditionVideo
?:
string
;
taskId
?:
number
;
/** 整车外观视频 */
wholeCarAppearanceVideo
?:
string
;
}
}
/**
/**
...
...
apps/web/venus-usedcar-quality/src/api/modules/inspect-report/page.ts
View file @
3baa379
import
{
post
}
from
"@utils/request"
;
import
{
post
}
from
"@utils/request"
;
export
interface
InspectReportPageParams
{
export
interface
InspectReportPageParams
{
size
:
number
;
page
:
number
;
keyword
?:
string
;
keyword
?:
string
;
page
:
number
;
size
:
number
;
}
}
export
interface
PageSort
{
export
interface
PageSort
{
...
@@ -13,84 +13,84 @@ export interface PageSort {
...
@@ -13,84 +13,84 @@ export interface PageSort {
}
}
export
interface
InspectReportPageData
<
T
>
{
export
interface
InspectReportPageData
<
T
>
{
size
:
number
;
content
:
T
[];
first
:
boolean
;
last
:
boolean
;
number
:
number
;
number
:
number
;
numberOfElements
:
number
;
size
:
number
;
sort
:
PageSort
;
totalElements
:
number
;
totalElements
:
number
;
last
:
boolean
;
totalPages
:
number
;
totalPages
:
number
;
sort
:
PageSort
;
first
:
boolean
;
numberOfElements
:
number
;
content
:
T
[];
}
}
export
interface
InspectReportVehicleCover
{
export
interface
InspectReportVehicleCover
{
uid
?:
number
|
string
;
[
key
:
string
]:
unknown
;
filePath
?:
string
;
lastModified
?:
number
;
lastModifiedDate
?:
string
;
name
?:
string
;
name
?:
string
;
size
?:
number
;
status
?:
string
;
status
?:
string
;
url
?:
string
;
filePath
?:
string
;
thumbPath
?:
null
|
string
;
thumbPath
?:
null
|
string
;
thumbUrl
?:
null
|
string
;
thumbUrl
?:
null
|
string
;
size
?:
number
;
uid
?:
number
|
string
;
lastModified
?:
number
;
url
?:
string
;
lastModifiedDate
?:
string
;
[
key
:
string
]:
unknown
;
}
}
export
interface
InspectReportVehicleBaseInfo
{
export
interface
InspectReportVehicleBaseInfo
{
carBrandId
?:
number
;
[
key
:
string
]:
unknown
;
carBrand
?:
string
;
carBrand
?:
string
;
carBrandId
?:
number
;
carChildsBrandId
?:
number
;
carChildsBrandId
?:
number
;
carChildsBrandName
?:
string
;
carChildsBrandName
?:
string
;
carSeriesId
?:
number
;
carSeriesId
?:
number
;
carSeriesName
?:
string
;
carSeriesName
?:
string
;
carTypeId
?:
number
;
carTypeId
?:
number
;
carTypeName
?:
string
;
carTypeName
?:
string
;
mileage
?:
number
;
vin
?:
string
;
engineNumber
?:
string
;
engineNumber
?:
string
;
guidePrice
?:
number
;
licensePlate
?:
string
;
licensePlate
?:
string
;
mileage
?:
number
;
sourceNo
?:
string
;
sourceNo
?:
string
;
tags
?:
string
[];
tags
?:
string
[];
guidePrice
?:
number
;
vin
?:
string
;
[
key
:
string
]:
unknown
;
}
}
export
interface
InspectReportVehicle
{
export
interface
InspectReportVehicle
{
createTime
?:
string
;
[
key
:
string
]:
unknown
;
updateTime
?:
string
;
albums
?:
InspectReportVehicleCover
[];
updateBy
?:
string
;
area
?:
Record
<
string
,
unknown
>
;
createBy
?:
string
;
vehicleId
?:
number
;
baseInfo
?:
InspectReportVehicleBaseInfo
;
baseInfo
?:
InspectReportVehicleBaseInfo
;
coreSpecs
?:
Record
<
string
,
unknown
>
;
coreSpecs
?:
Record
<
string
,
unknown
>
;
ownership
?:
Record
<
string
,
unknown
>
;
cover
?:
InspectReportVehicleCover
;
licenseInfo
?:
Record
<
string
,
unknown
>
;
createBy
?:
string
;
historyCondition
?:
Record
<
string
,
unknown
>
;
createTime
?:
string
;
evaluationTransaction
?:
Record
<
string
,
unknown
>
;
custodianInfo
?:
Record
<
string
,
unknown
>
;
custodianInfo
?:
Record
<
string
,
unknown
>
;
evaluationTransaction
?:
Record
<
string
,
unknown
>
;
historyCondition
?:
Record
<
string
,
unknown
>
;
licenseInfo
?:
Record
<
string
,
unknown
>
;
ownerInfo
?:
Record
<
string
,
unknown
>
;
ownerInfo
?:
Record
<
string
,
unknown
>
;
venue
?:
Record
<
string
,
unknown
>
;
ownership
?:
Record
<
string
,
unknown
>
;
area
?:
Record
<
string
,
unknown
>
;
parkingSpace
?:
string
;
parkingSpace
?:
string
;
cover
?:
InspectReportVehicleCover
;
updateBy
?:
string
;
albums
?:
InspectReportVehicleCover
[];
updateTime
?:
string
;
[
key
:
string
]:
unknown
;
vehicleId
?:
number
;
venue
?:
Record
<
string
,
unknown
>
;
}
}
export
interface
InspectReportItem
{
export
interface
InspectReportItem
{
[
key
:
string
]:
unknown
;
bindStatus
?:
number
;
createTime
?:
string
;
h5Url
?:
string
;
id
:
number
;
id
:
number
;
reportNo
:
string
;
reportNo
:
string
;
woId
:
string
;
vehicle
?:
InspectReportVehicle
;
score
?:
number
;
score
?:
number
;
scoreLevel
?:
string
;
scoreLevel
?:
string
;
bindStatus
?:
number
;
h5Url
?:
string
;
createTime
?:
string
;
updateTime
?:
string
;
updateTime
?:
string
;
[
key
:
string
]:
unknown
;
vehicle
?:
InspectReportVehicle
;
woId
:
string
;
}
}
export
type
InspectReportPageResult
=
InspectReportPageData
<
InspectReportItem
>
;
export
type
InspectReportPageResult
=
InspectReportPageData
<
InspectReportItem
>
;
...
...
apps/web/venus-usedcar-quality/src/api/modules/inspect-report/record.ts
View file @
3baa379
...
@@ -3,30 +3,30 @@ import { post } from "@utils/request";
...
@@ -3,30 +3,30 @@ import { post } from "@utils/request";
export
interface
LeafNodeValue
{
export
interface
LeafNodeValue
{
/** 新建保存时多数实现可省略,由后端生成 */
/** 新建保存时多数实现可省略,由后端生成 */
id
?:
number
;
id
?:
number
;
valueText
:
string
;
valueKey
:
string
;
interactionType
:
string
;
interactionType
:
string
;
valueSeq
:
number
;
remark
:
string
;
remark
:
string
;
valueKey
:
string
;
valueSeq
:
number
;
valueText
:
string
;
}
}
export
interface
LeafNodeRecord
{
export
interface
LeafNodeRecord
{
data
:
LeafNodeValue
[];
nodeId
:
number
;
nodeId
:
number
;
nodeName
:
string
;
nodeName
:
string
;
resultStatus
:
number
;
remark
:
string
;
remark
:
string
;
data
:
LeafNodeValue
[]
;
resultStatus
:
number
;
}
}
export
interface
InspectionRecordSaveParams
{
export
interface
InspectionRecordSaveParams
{
taskId
:
number
|
string
;
leafNodes
:
LeafNodeRecord
[]
;
/** 大项 nodeId */
/** 大项 nodeId */
locationModule
:
number
|
string
;
locationModule
:
number
|
string
;
/** 二级项 nodeId;无二级分组时为 null */
/** 二级项 nodeId;无二级分组时为 null */
locationSubModule
:
null
|
number
|
string
;
locationSubModule
:
null
|
number
|
string
;
/** true = 保存并跳下一步,false = 仅保存 */
/** true = 保存并跳下一步,false = 仅保存 */
nextFlag
:
boolean
;
nextFlag
:
boolean
;
leafNodes
:
LeafNodeRecord
[]
;
taskId
:
number
|
string
;
}
}
/**
/**
...
@@ -40,15 +40,15 @@ export function saveInspectionRecord(params: InspectionRecordSaveParams) {
...
@@ -40,15 +40,15 @@ export function saveInspectionRecord(params: InspectionRecordSaveParams) {
* POST `/rest/inspectionRecord/completeInspection` 请求体
* POST `/rest/inspectionRecord/completeInspection` 请求体
*/
*/
export
interface
CompleteInspectionParams
{
export
interface
CompleteInspectionParams
{
taskId
:
number
|
string
;
exteriorScore
:
number
;
exteriorComment
:
string
;
exteriorComment
:
string
;
skeletonLevel
:
string
;
exteriorScore
:
number
;
skeletonComment
:
string
;
interiorLevel
:
string
;
interiorComment
:
string
;
interiorComment
:
string
;
overallScore
:
number
;
interiorLevel
:
string
;
overallComment
:
string
;
overallComment
:
string
;
overallScore
:
number
;
skeletonComment
:
string
;
skeletonLevel
:
string
;
taskId
:
number
|
string
;
}
}
/** `completeInspection` 成功时 `data`:有未完成项时带首项节点信息(多为大项 rootNodeId) */
/** `completeInspection` 成功时 `data`:有未完成项时带首项节点信息(多为大项 rootNodeId) */
...
...
apps/web/venus-usedcar-quality/src/api/modules/inspect-report/template.ts
View file @
3baa379
...
@@ -3,64 +3,64 @@ import { get, post } from "@utils/request";
...
@@ -3,64 +3,64 @@ import { get, post } from "@utils/request";
/** 检测结果单项值(与落库结构对齐) */
/** 检测结果单项值(与落库结构对齐) */
export
interface
InspectionValueItem
{
export
interface
InspectionValueItem
{
id
?:
number
;
id
?:
number
;
interactionType
?:
string
;
remark
?:
string
;
resultId
?:
number
;
resultId
?:
number
;
valueKey
?:
string
;
valueKey
?:
string
;
valueText
?:
string
;
interactionType
?:
string
;
valueSeq
?:
number
;
valueSeq
?:
number
;
remark
?:
string
;
valueText
?:
string
;
}
}
export
interface
InspectionResultVO
{
export
interface
InspectionResultVO
{
[
key
:
string
]:
unknown
;
/** 完成标志:0 未完成,1 已完成(接口也可能给空字符串) */
completedFlag
?:
0
|
1
|
string
;
id
?:
number
;
id
?:
number
;
recordId
?:
number
;
inspectionValueList
?:
InspectionValueItem
[]
;
nodeId
?:
number
;
nodeId
?:
number
;
nodeName
?:
string
;
nodeName
?:
string
;
resultStatus
?:
number
;
recordId
?:
number
;
/** 完成标志:0 未完成,1 已完成(接口也可能给空字符串) */
completedFlag
?:
0
|
1
|
string
;
remark
?:
string
;
remark
?:
string
;
inspectionValueList
?:
InspectionValueItem
[];
resultStatus
?:
number
;
[
key
:
string
]:
unknown
;
}
}
export
interface
InspectionNode
{
export
interface
InspectionNode
{
[
key
:
string
]:
unknown
;
allowNoStructure
?:
number
;
/** 子节点列表(nodeType=2 的节点下挂 nodeType=3 的叶子节点) */
childrenNodes
?:
InspectionNode
[];
createTime
?:
string
;
dataFormat
?:
string
;
defaultType
?:
number
;
defaultValue
?:
string
;
displayMode
?:
number
;
editPermission
?:
string
;
existsDefaultValue
?:
number
|
string
;
id
:
number
;
id
:
number
;
templateId
:
number
;
/** 检测结果(含完成标志) */
parentId
:
number
;
inspectionResultVO
?:
InspectionResultVO
;
interactionType
?:
string
;
itemType
:
number
;
nodeCode
?:
string
;
nodeCode
?:
string
;
nodeLevel
:
number
;
nodeName
:
string
;
nodeName
:
string
;
nodeType
:
number
;
nodeType
:
number
;
showNodeName
:
string
;
editPermission
?:
string
;
displayMode
?:
number
;
itemType
:
number
;
interactionType
?:
string
;
dataFormat
?:
string
;
placeholder
?:
string
;
required
?:
number
;
optionsSourceType
?:
number
;
options
?:
string
;
options
?:
string
;
validationRules
?:
string
;
optionsSourceType
?:
number
;
allowNoStructure
?:
number
;
parentId
:
number
;
existsDefaultValue
?:
number
|
string
;
placeholder
?:
string
;
defaultValue
?:
string
;
defaultType
?:
number
;
nodeLevel
:
number
;
sortOrder
:
number
;
status
:
number
;
remark
?:
string
;
remark
?:
string
;
createTime
?:
string
;
required
?:
number
;
/** 检测结果(含完成标志) */
inspectionResultVO
?:
InspectionResultVO
;
/** 子节点列表(nodeType=2 的节点下挂 nodeType=3 的叶子节点) */
childrenNodes
?:
InspectionNode
[];
/**
/**
* 前端根据 existsDefaultValue / defaultType 解析后的初始值
* 前端根据 existsDefaultValue / defaultType 解析后的初始值
* (defaultType=2 时从 getInspectionTemplateDefault 的 data[nodeCode] 映射)
* (defaultType=2 时从 getInspectionTemplateDefault 的 data[nodeCode] 映射)
*/
*/
resolvedInitialValue
?:
string
;
resolvedInitialValue
?:
string
;
[
key
:
string
]:
unknown
;
showNodeName
:
string
;
sortOrder
:
number
;
status
:
number
;
templateId
:
number
;
validationRules
?:
string
;
}
}
/**
/**
...
@@ -75,15 +75,15 @@ export function getInspectionRootNodes(taskId: number | string) {
...
@@ -75,15 +75,15 @@ export function getInspectionRootNodes(taskId: number | string) {
* 检测评分回显(与 `completeInspection` 字段对应,接口可能省略部分字段)
* 检测评分回显(与 `completeInspection` 字段对应,接口可能省略部分字段)
*/
*/
export
interface
InspectionScoreVO
{
export
interface
InspectionScoreVO
{
exteriorScore
?:
null
|
number
|
string
;
[
key
:
string
]:
unknown
;
exteriorComment
?:
null
|
string
;
exteriorComment
?:
null
|
string
;
skeletonLevel
?:
null
|
string
;
exteriorScore
?:
null
|
number
|
string
;
skeletonComment
?:
null
|
string
;
interiorLevel
?:
null
|
string
;
interiorComment
?:
null
|
string
;
interiorComment
?:
null
|
string
;
overallScore
?:
null
|
number
|
string
;
interiorLevel
?:
null
|
string
;
overallComment
?:
null
|
string
;
overallComment
?:
null
|
string
;
[
key
:
string
]:
unknown
;
overallScore
?:
null
|
number
|
string
;
skeletonComment
?:
null
|
string
;
skeletonLevel
?:
null
|
string
;
}
}
/**
/**
...
@@ -111,26 +111,26 @@ export function getInspectionChildren(rootNodeId: number | string, taskId: numbe
...
@@ -111,26 +111,26 @@ export function getInspectionChildren(rootNodeId: number | string, taskId: numbe
/** getInspectionTemplateDefault 返回的 data 结构(字段与 nodeCode 对应,可扩展) */
/** getInspectionTemplateDefault 返回的 data 结构(字段与 nodeCode 对应,可扩展) */
export
interface
InspectionTemplateDefaultData
{
export
interface
InspectionTemplateDefaultData
{
keyCount
?:
string
;
[
key
:
string
]:
unknown
;
annualInspectionExpiry
?:
string
;
carBrand
?:
string
;
carBrand
?:
string
;
exteriorColor
?:
string
;
carSeriesId
?:
string
;
carSeriesName
?:
string
;
compulsoryInsuranceExpiry
?:
string
;
compulsoryInsuranceExpiry
?:
string
;
displacement
?:
string
;
emissionStandard
?:
string
;
engineNumber
?:
string
;
engineNumber
?:
string
;
exteriorColor
?:
string
;
handoverAddress
?:
string
;
handoverAddress
?:
string
;
sourceNo
?:
string
;
keyCount
?:
string
;
seat
?:
string
;
licensePlate
?:
string
;
licensePlate
?:
string
;
carSeriesId
?:
string
;
mileage
?:
string
;
productionDate
?:
string
;
productionDate
?:
string
;
annualInspectionExpiry
?:
string
;
registrationDate
?:
string
;
registrationDate
?:
string
;
vin
?:
string
;
seat
?:
string
;
displacement
?:
string
;
sourceNo
?:
string
;
emissionStandard
?:
string
;
carSeriesName
?:
string
;
mileage
?:
string
;
usageType
?:
string
;
usageType
?:
string
;
[
key
:
string
]:
unknown
;
vin
?:
string
;
}
}
/**
/**
...
...
apps/web/venus-usedcar-quality/src/api/modules/user.ts
View file @
3baa379
...
@@ -17,46 +17,46 @@ export interface LoginParams {
...
@@ -17,46 +17,46 @@ export interface LoginParams {
}
}
export
interface
LoginResult
{
export
interface
LoginResult
{
token
:
string
;
expireTime
:
number
;
expireTime
:
number
;
phone
:
string
;
phone
:
string
;
token
:
string
;
}
}
export
interface
InspectDetailAccount
{
export
interface
InspectDetailAccount
{
[
key
:
string
]:
unknown
;
avatar
?:
string
;
createTime
?:
string
;
id
:
number
;
id
:
number
;
name
:
string
;
name
:
string
;
phone
:
string
;
phone
:
string
;
avatar
?:
string
;
status
:
number
;
region
?:
string
;
region
?:
string
;
regionName
?:
string
;
regionName
?:
string
;
createTime
?:
string
;
status
:
number
;
[
key
:
string
]:
unknown
;
}
}
export
interface
InspectDetailOpLog
{
export
interface
InspectDetailOpLog
{
id
:
number
;
description
:
string
;
createTime
?:
string
;
createBy
?:
string
;
[
key
:
string
]:
unknown
;
[
key
:
string
]:
unknown
;
createBy
?:
string
;
createTime
?:
string
;
description
:
string
;
id
:
number
;
}
}
export
interface
InspectorSimpleSummary
{
export
interface
InspectorSimpleSummary
{
recent7InspectCount
:
number
;
[
key
:
string
]:
unknown
;
recent30InspectCoun
t
:
number
;
avgInspectCos
t
:
number
;
inspectCount
:
number
;
inspectCount
:
number
;
recent7AvgInspectCost
:
number
;
recent7AvgInspectCost
:
number
;
recent7InspectCount
:
number
;
recent30AvgInspectCost
:
number
;
recent30AvgInspectCost
:
number
;
avgInspectCost
:
number
;
recent30InspectCount
:
number
;
[
key
:
string
]:
unknown
;
}
}
export
interface
InspectDetailResult
{
export
interface
InspectDetailResult
{
[
key
:
string
]:
unknown
;
account
:
InspectDetailAccount
;
account
:
InspectDetailAccount
;
opLogs
:
InspectDetailOpLog
[];
inspectorSimpleSummary
:
InspectorSimpleSummary
;
inspectorSimpleSummary
:
InspectorSimpleSummary
;
[
key
:
string
]:
unknown
;
opLogs
:
InspectDetailOpLog
[]
;
}
}
export
function
sendSmsCode
(
phone
:
string
)
{
export
function
sendSmsCode
(
phone
:
string
)
{
...
...
apps/web/venus-usedcar-quality/src/api/modules/work-order.ts
View file @
3baa379
import
{
get
,
post
}
from
"@utils/request"
;
import
{
get
,
post
}
from
"@utils/request"
;
export
interface
WorkOrderListParams
{
export
interface
WorkOrderListParams
{
size
:
number
;
keyword
?:
string
;
page
:
number
;
page
:
number
;
size
:
number
;
status
:
1
|
2
|
3
|
4
;
status
:
1
|
2
|
3
|
4
;
keyword
?:
string
;
}
}
export
interface
WorkOrderCountData
{
export
interface
WorkOrderCountData
{
canceledCount
:
number
;
completedCount
:
number
;
dispatchedCount
:
number
;
dispatchedCount
:
number
;
inProgressCount
:
number
;
inProgressCount
:
number
;
completedCount
:
number
;
canceledCount
:
number
;
}
}
export
interface
WorkOrderPageData
<
T
>
{
export
interface
WorkOrderPageData
<
T
>
{
size
:
number
;
content
:
T
[];
last
:
boolean
;
number
:
number
;
number
:
number
;
numberOfElements
:
number
;
size
:
number
;
totalElements
:
number
;
totalElements
:
number
;
last
:
boolean
;
totalPages
:
number
;
totalPages
:
number
;
numberOfElements
:
number
;
content
:
T
[];
}
}
export
interface
WorkOrderVehicle
{
export
interface
WorkOrderVehicle
{
...
@@ -32,6 +32,10 @@ export interface WorkOrderVehicle {
...
@@ -32,6 +32,10 @@ export interface WorkOrderVehicle {
licensePlate
?:
string
;
licensePlate
?:
string
;
vin
?:
string
;
vin
?:
string
;
};
};
cover
?:
{
thumbUrl
?:
string
;
url
?:
string
;
};
ownership
?:
{
ownership
?:
{
carCityName
?:
string
;
carCityName
?:
string
;
carProvinceName
?:
string
;
carProvinceName
?:
string
;
...
@@ -39,21 +43,17 @@ export interface WorkOrderVehicle {
...
@@ -39,21 +43,17 @@ export interface WorkOrderVehicle {
venue
?:
{
venue
?:
{
address
?:
string
;
address
?:
string
;
};
};
cover
?:
{
thumbUrl
?:
string
;
url
?:
string
;
};
}
}
export
interface
WorkOrderRemoteItem
{
export
interface
WorkOrderRemoteItem
{
id
:
number
;
woId
:
string
;
status
:
1
|
2
|
3
|
4
;
auditStatus
?:
1
|
2
|
3
|
4
;
auditStatus
?:
1
|
2
|
3
|
4
;
woTime
?:
string
;
createTime
?:
string
;
createTime
?:
string
;
id
:
number
;
inspectionAddress
?:
string
;
inspectionAddress
?:
string
;
status
:
1
|
2
|
3
|
4
;
vehicle
?:
WorkOrderVehicle
;
vehicle
?:
WorkOrderVehicle
;
woId
:
string
;
woTime
?:
string
;
}
}
export
function
getWorkOrderPage
(
params
:
WorkOrderListParams
)
{
export
function
getWorkOrderPage
(
params
:
WorkOrderListParams
)
{
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
View file @
3baa379
This diff is collapsed.
Click to expand it.
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelect.vue
View file @
3baa379
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
onMounted
,
compu
ted
,
ref
}
from
"vue"
;
import
{
computed
,
onMoun
ted
,
ref
}
from
"vue"
;
const
props
=
defineProps
({
const
props
=
defineProps
({
item
:
{
item
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
},
default
:
()
=>
{},
},
},
});
});
const
emit
=
defineEmits
([
"update"
]);
const
emit
=
defineEmits
([
"update"
]);
...
@@ -75,8 +75,11 @@ function setupdate() {
...
@@ -75,8 +75,11 @@ function setupdate() {
<span>
{{
item
.
nodeName
}}
</span>
<span>
{{
item
.
nodeName
}}
</span>
</div>
</div>
<div
class=
"selectList"
>
<div
class=
"selectList"
>
<div
v-for=
"(col, index) in columnsList"
:key=
"index"
class=
"selectBut"
<div
v-for=
"(col, index) in columnsList"
:class=
"
{ 'pitchOn': pickerValue.includes(col.value) }" @click="handleBut(col)">
:key=
"index"
class=
"selectBut"
:class=
"
{ 'pitchOn': pickerValue.includes(col.value) }"
@click="handleBut(col)">
{{
col
.
text
}}
{{
col
.
text
}}
<div
v-if=
"pickerValue.includes(col.value)"
class=
"pitchImg"
></div>
<div
v-if=
"pickerValue.includes(col.value)"
class=
"pitchImg"
></div>
</div>
</div>
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelectAndImageUpload.vue
View file @
3baa379
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
onMounted
,
computed
,
ref
}
from
"vue"
;
import
{
computed
,
onMounted
,
ref
}
from
"vue"
;
import
{
uploadFile
}
from
"@/utils/upload.js"
;
import
{
uploadFile
}
from
"@/utils/upload.js"
;
import
{
showToast
}
from
"vant"
;
import
{
showToast
}
from
"vant"
;
...
@@ -7,7 +8,7 @@ import { showToast } from "vant";
...
@@ -7,7 +8,7 @@ import { showToast } from "vant";
const
props
=
defineProps
({
const
props
=
defineProps
({
item
:
{
item
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
},
default
:
()
=>
{},
},
},
});
});
...
@@ -32,7 +33,7 @@ function initData() {
...
@@ -32,7 +33,7 @@ function initData() {
if
(
props
?.
item
?.
inspectionResultVO
)
{
if
(
props
?.
item
?.
inspectionResultVO
)
{
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
const
inspectionValueList
=
props
?.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
for
(
const
i
of
inspectionValueList
)
{
for
(
const
i
of
inspectionValueList
)
{
if
(
i
.
valueText
&&
i
.
interactionType
==
"image_upload"
)
{
pickerValue
.
value
.
push
(
i
.
valueText
)
}
if
(
i
.
valueText
&&
i
.
interactionType
==
"image_upload"
)
{
pickerValue
.
value
.
push
(
i
.
valueText
)
;
}
}
}
}
}
updateData
();
updateData
();
...
@@ -89,19 +90,35 @@ function updateData() {
...
@@ -89,19 +90,35 @@ function updateData() {
有损伤请拍摄图片,无损伤请忽略
有损伤请拍摄图片,无损伤请忽略
</div>
</div>
</div>
</div>
<input
ref=
"fileInputRef"
accept=
"image/*"
class=
"hidden-input"
type=
"file"
@
change=
"onFileChange"
>
<input
ref=
"fileInputRef"
accept=
"image/*"
class=
"hidden-input"
type=
"file"
@
change=
"onFileChange"
>
<div
class=
"uploadPage"
>
<div
class=
"uploadPage"
>
<div
v-if=
"(validationRules.maxCount || 3) > pickerValue.length"
class=
"uploadBox"
@
click=
"pickFile"
>
<div
v-if=
"(validationRules.maxCount || 3) > pickerValue.length"
<van-icon
class=
"plusBox"
color=
"#999999"
name=
"plus"
size=
"24"
/>
class=
"uploadBox"
@
click=
"pickFile"
>
<van-icon
class=
"plusBox"
color=
"#999999"
name=
"plus"
size=
"24"
/>
<div
class=
"uploadTxt"
>
<div
class=
"uploadTxt"
>
添加照片
添加照片
</div>
</div>
</div>
</div>
<div
v-for=
"(url, index) in pickerValue"
:key=
"index"
class=
"uploadBox"
>
<div
v-for=
"(url, index) in pickerValue"
:key=
"index"
class=
"uploadBox"
>
<div
class=
"deleteBox"
@
click=
"handleDelete(url)"
>
<div
class=
"deleteBox"
@
click=
"handleDelete(url)"
>
<van-icon
color=
"#999999"
name=
"clear"
size=
"20"
/>
<van-icon
color=
"#999999"
name=
"clear"
size=
"20"
/>
</div>
</div>
<van-image
height=
"96"
:src=
"url"
style=
"border-radius: 8px;"
width=
"96"
/>
<van-image
height=
"96"
:src=
"url"
style=
"border-radius: 8px;"
width=
"96"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
View file @
3baa379
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
onMounted
,
compu
ted
,
ref
}
from
"vue"
;
import
{
computed
,
onMoun
ted
,
ref
}
from
"vue"
;
import
{
uploadFile
}
from
"@/utils/upload.js"
;
import
{
uploadFile
}
from
"@/utils/upload.js"
;
import
{
showToast
}
from
"vant"
;
import
{
showToast
}
from
"vant"
;
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/radioSelect.vue
View file @
3baa379
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
onMounted
,
compu
ted
,
ref
}
from
"vue"
;
import
{
computed
,
onMoun
ted
,
ref
}
from
"vue"
;
const
props
=
defineProps
({
const
props
=
defineProps
({
item
:
{
item
:
{
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDatePicker.vue
View file @
3baa379
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
onMounted
,
compu
ted
,
ref
}
from
"vue"
;
import
{
computed
,
onMoun
ted
,
ref
}
from
"vue"
;
const
props
=
defineProps
({
const
props
=
defineProps
({
item
:
{
item
:
{
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDropdown.vue
View file @
3baa379
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
onMounted
,
compu
ted
,
ref
}
from
"vue"
;
import
{
computed
,
onMoun
ted
,
ref
}
from
"vue"
;
const
props
=
defineProps
({
const
props
=
defineProps
({
item
:
{
item
:
{
...
...
apps/web/venus-usedcar-quality/src/composables/useRequest.ts
View file @
3baa379
...
@@ -5,8 +5,8 @@ import { showToast } from "vant";
...
@@ -5,8 +5,8 @@ import { showToast } from "vant";
interface
UseRequestOptions
<
T
>
{
interface
UseRequestOptions
<
T
>
{
immediate
?:
boolean
;
immediate
?:
boolean
;
initialData
?:
T
;
initialData
?:
T
;
onSuccess
?:
(
data
:
T
)
=>
void
;
onError
?:
(
error
:
unknown
)
=>
void
;
onError
?:
(
error
:
unknown
)
=>
void
;
onSuccess
?:
(
data
:
T
)
=>
void
;
}
}
export
function
useRequest
<
T
>
(
export
function
useRequest
<
T
>
(
...
@@ -44,8 +44,8 @@ export function useRequest<T>(
...
@@ -44,8 +44,8 @@ export function useRequest<T>(
}
}
interface
UsePaginationOptions
<
T
>
{
interface
UsePaginationOptions
<
T
>
{
pageSize
?:
number
;
onSuccess
?:
(
list
:
T
[],
total
:
number
)
=>
void
;
onSuccess
?:
(
list
:
T
[],
total
:
number
)
=>
void
;
pageSize
?:
number
;
}
}
export
function
usePagination
<
T
>
(
export
function
usePagination
<
T
>
(
...
...
apps/web/venus-usedcar-quality/src/stores/modules/user.ts
View file @
3baa379
...
@@ -6,9 +6,9 @@ import { notifyHostLogout } from "@/utils/webviewBridge";
...
@@ -6,9 +6,9 @@ import { notifyHostLogout } from "@/utils/webviewBridge";
import
{
defineStore
}
from
"pinia"
;
import
{
defineStore
}
from
"pinia"
;
export
interface
UserInfo
{
export
interface
UserInfo
{
avatar
:
string
;
id
:
number
;
id
:
number
;
nickname
:
string
;
nickname
:
string
;
avatar
:
string
;
phone
:
string
;
phone
:
string
;
}
}
...
...
apps/web/venus-usedcar-quality/src/types/api.ts
View file @
3baa379
export
interface
ApiResponse
<
T
=
unknown
>
{
export
interface
ApiResponse
<
T
=
unknown
>
{
code
:
number
;
code
:
number
;
message
:
string
;
data
:
T
;
data
:
T
;
message
:
string
;
}
}
export
interface
PageParams
{
export
interface
PageParams
{
...
@@ -10,15 +10,15 @@ export interface PageParams {
...
@@ -10,15 +10,15 @@ export interface PageParams {
}
}
export
interface
PageData
<
T
=
unknown
>
{
export
interface
PageData
<
T
=
unknown
>
{
hasMore
:
boolean
;
list
:
T
[];
list
:
T
[];
total
:
number
;
page
:
number
;
page
:
number
;
pageSize
:
number
;
pageSize
:
number
;
hasMore
:
boolean
;
total
:
number
;
}
}
export
interface
SelectOption
{
export
interface
SelectOption
{
disabled
?:
boolean
;
label
:
string
;
label
:
string
;
value
:
number
|
string
;
value
:
number
|
string
;
disabled
?:
boolean
;
}
}
apps/web/venus-usedcar-quality/src/types/global.d.ts
View file @
3baa379
declare
module
"vue-router"
{
declare
module
"vue-router"
{
interface
RouteMeta
{
interface
RouteMeta
{
title
?:
string
;
keepAlive
?:
boolean
;
showTabBar
?:
boolean
;
requiresAuth
?:
boolean
;
/** 为 true 时不展示全局路由 Loading、不参与延迟 Toast */
/** 为 true 时不展示全局路由 Loading、不参与延迟 Toast */
hideRouteLoading
?:
boolean
;
hideRouteLoading
?:
boolean
;
keepAlive
?:
boolean
;
requiresAuth
?:
boolean
;
showTabBar
?:
boolean
;
title
?:
string
;
}
}
}
}
...
...
apps/web/venus-usedcar-quality/src/types/glsk-oss-jssdk.d.ts
View file @
3baa379
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
*/
*/
declare
module
"glsk-oss-jssdk"
{
declare
module
"glsk-oss-jssdk"
{
export
interface
MultipartUploadResult
{
export
interface
MultipartUploadResult
{
[
key
:
string
]:
any
;
aliyunAddress
:
string
;
aliyunAddress
:
string
;
attachment
:
string
;
attachment
:
string
;
size
?:
string
;
size
?:
string
;
[
key
:
string
]:
any
;
}
}
class
GlOssApi
{
class
GlOssApi
{
...
...
apps/web/venus-usedcar-quality/src/types/views/car-detail.ts
View file @
3baa379
...
@@ -5,29 +5,29 @@ export const SCORE_RATING_OPTIONS = ["A", "B", "C", "D"] as const;
...
@@ -5,29 +5,29 @@ export const SCORE_RATING_OPTIONS = ["A", "B", "C", "D"] as const;
export
type
ScoreRatingOption
=
(
typeof
SCORE_RATING_OPTIONS
)[
number
];
export
type
ScoreRatingOption
=
(
typeof
SCORE_RATING_OPTIONS
)[
number
];
export
interface
SubTab
{
export
interface
SubTab
{
/** 二级项自身的完成标志:0 未完成,1 已完成 */
completedFlag
?:
0
|
1
;
/** 二级项节点上的检测结果(与接口一致,进度/勾选优先据此判断) */
inspectionResultVO
?:
InspectionResultVO
;
key
:
number
|
string
;
key
:
number
|
string
;
label
:
string
;
label
:
string
;
nodeId
?:
number
;
/** 该二级项下的叶子节点列表(nodeType=3) */
/** 该二级项下的叶子节点列表(nodeType=3) */
leafNodes
?:
InspectionNode
[];
leafNodes
?:
InspectionNode
[];
/** 二级项节点上的检测结果(与接口一致,进度/勾选优先据此判断) */
nodeId
?:
number
;
inspectionResultVO
?:
InspectionResultVO
;
/** 二级项自身的完成标志:0 未完成,1 已完成 */
completedFlag
?:
0
|
1
;
}
}
export
interface
BigModule
{
export
interface
BigModule
{
/** 是否存在二级分组 Tab;false 表示子节点直接为叶子(nodeType=3),不展示二级 Tab */
hasSecondaryTabs
?:
boolean
;
key
:
number
|
string
;
key
:
number
|
string
;
label
:
string
;
label
:
string
;
nodeId
?:
number
;
nodeId
?:
number
;
/** 是否存在二级分组 Tab;false 表示子节点直接为叶子(nodeType=3),不展示二级 Tab */
hasSecondaryTabs
?:
boolean
;
subTabs
:
SubTab
[];
/**
/**
* 当前大项下二级接口列表维度:total = 列表长度,done = 各节点 inspectionResultVO.completedFlag 统计
* 当前大项下二级接口列表维度:total = 列表长度,done = 各节点 inspectionResultVO.completedFlag 统计
* (无二级 Tab、叶子直挂大项时按同一接口返回的叶子条数统计)
* (无二级 Tab、叶子直挂大项时按同一接口返回的叶子条数统计)
*/
*/
secondaryProgress
?:
{
done
:
number
;
total
:
number
;
};
secondaryProgress
?:
{
done
:
number
;
total
:
number
;
};
subTabs
:
SubTab
[];
}
}
/**
/**
...
@@ -51,16 +51,16 @@ export interface CustomizeFormValidateFieldItem {
...
@@ -51,16 +51,16 @@ export interface CustomizeFormValidateFieldItem {
/** 中间表单 validate / saveData 下单个叶子节点(与 `setSubmitData` 一项一致) */
/** 中间表单 validate / saveData 下单个叶子节点(与 `setSubmitData` 一项一致) */
export
interface
CustomizeFormValidateNode
{
export
interface
CustomizeFormValidateNode
{
data
:
CustomizeFormValidateFieldItem
[];
nodeId
:
number
|
string
;
nodeId
:
number
|
string
;
nodeName
:
string
;
nodeName
:
string
;
resultStatus
:
number
;
remark
:
string
;
remark
:
string
;
data
:
CustomizeFormValidateFieldItem
[]
;
resultStatus
:
number
;
}
}
/** 中间表单 validate / saveData 返回体;`data` 为当前二级下多列叶子节点数组 */
/** 中间表单 validate / saveData 返回体;`data` 为当前二级下多列叶子节点数组 */
export
interface
CustomizeFormValidateResult
{
export
interface
CustomizeFormValidateResult
{
success
:
boolean
;
message
?:
string
;
data
?:
CustomizeFormValidateNode
[];
data
?:
CustomizeFormValidateNode
[];
message
?:
string
;
success
:
boolean
;
}
}
apps/web/venus-usedcar-quality/src/types/views/car-list.ts
View file @
3baa379
export
interface
ReportItem
{
export
interface
ReportItem
{
id
:
number
;
address
:
string
;
reportNo
:
string
;
carTitle
:
string
;
carTitle
:
string
;
coverImage
:
string
;
id
:
number
;
plateNo
:
string
;
plateNo
:
string
;
vin
:
string
;
reportNo
:
string
;
address
:
string
;
updateTime
:
string
;
updateTime
:
string
;
coverImage
:
string
;
vin
:
string
;
}
}
apps/web/venus-usedcar-quality/src/types/views/home.ts
View file @
3baa379
...
@@ -11,20 +11,20 @@ export interface CardAction {
...
@@ -11,20 +11,20 @@ export interface CardAction {
|
"viewReport"
|
"viewReport"
|
"viewWorkOrder"
;
|
"viewWorkOrder"
;
label
:
string
;
label
:
string
;
variant
:
ActionVariant
;
onClick
:
()
=>
void
;
onClick
:
()
=>
void
;
variant
:
ActionVariant
;
}
}
export
interface
WorkOrderItem
{
export
interface
WorkOrderItem
{
id
:
string
;
address
:
string
;
status
:
WorkOrderStatus
;
auditContent
?:
string
;
auditStatus
?:
AuditStatus
;
auditStatus
?:
AuditStatus
;
orderNo
:
string
;
carTitle
:
string
;
carTitle
:
string
;
coverImage
:
string
;
dispatchTime
:
string
;
id
:
string
;
orderNo
:
string
;
plateNo
:
string
;
plateNo
:
string
;
status
:
WorkOrderStatus
;
vin
:
string
;
vin
:
string
;
address
:
string
;
dispatchTime
:
string
;
coverImage
:
string
;
auditContent
?:
string
;
}
}
apps/web/venus-usedcar-quality/src/types/views/work-order-detail.ts
View file @
3baa379
import
type
{
WorkOrderStatus
}
from
"./work-order-common"
;
import
type
{
WorkOrderStatus
}
from
"./work-order-common"
;
export
interface
VehicleCover
{
export
interface
VehicleCover
{
filePath
?:
null
|
string
;
thumbPath
?:
null
|
string
;
thumbUrl
?:
null
|
string
;
thumbUrl
?:
null
|
string
;
url
?:
null
|
string
;
url
?:
null
|
string
;
thumbPath
?:
null
|
string
;
filePath
?:
null
|
string
;
}
}
export
interface
WorkOrderBaseInfo
{
export
interface
WorkOrderBaseInfo
{
licensePlate
?:
string
;
carTypeName
?:
string
;
vin
?:
string
;
carBrand
?:
string
;
carBrand
?:
string
;
carSeriesName
?:
string
;
carSeriesName
?:
string
;
carTypeName
?:
string
;
licensePlate
?:
string
;
vin
?:
string
;
}
}
export
interface
WorkOrderVehicle
{
export
interface
WorkOrderVehicle
{
baseInfo
?:
WorkOrderBaseInfo
;
baseInfo
?:
WorkOrderBaseInfo
;
venue
?:
{
address
?:
string
};
ownership
?:
{
carCityName
?:
string
;
carProvinceName
?:
string
};
cover
?:
VehicleCover
;
cover
?:
VehicleCover
;
custodianInfo
?:
{
custodianName
?:
string
;
custodianPhone
?:
string
};
custodianInfo
?:
{
custodianName
?:
string
;
custodianPhone
?:
string
};
ownership
?:
{
carCityName
?:
string
;
carProvinceName
?:
string
};
venue
?:
{
address
?:
string
};
}
}
export
interface
NodeVO
{
export
interface
NodeVO
{
count
:
number
;
nodeId
:
number
;
nodeId
:
number
;
nodeName
:
string
;
nodeName
:
string
;
count
:
number
;
status
?:
number
;
nodeStatus
?:
number
;
nodeStatus
?:
number
;
status
?:
number
;
}
}
export
interface
InspectionWORespVO
{
export
interface
InspectionWORespVO
{
woId
?:
string
;
status
?:
WorkOrderStatus
;
woTime
?:
string
;
inspectionAddress
?:
string
;
inspectionAddress
?:
string
;
updateTime
?:
string
;
inspectionCompletedTime
?:
string
;
inspectionCompletedTime
?:
string
;
status
?:
WorkOrderStatus
;
updateTime
?:
string
;
vehicle
?:
WorkOrderVehicle
;
vehicle
?:
WorkOrderVehicle
;
woId
?:
string
;
woTime
?:
string
;
}
}
export
interface
WorkOrderDetailRemote
{
export
interface
WorkOrderDetailRemote
{
...
...
apps/web/venus-usedcar-quality/src/utils/request.ts
View file @
3baa379
...
@@ -29,24 +29,24 @@ export function isRequestFailureAlreadyHandled(error: unknown): boolean {
...
@@ -29,24 +29,24 @@ export function isRequestFailureAlreadyHandled(error: unknown): boolean {
export
interface
ApiResponse
<
T
=
unknown
>
{
export
interface
ApiResponse
<
T
=
unknown
>
{
code
?:
number
|
string
;
code
?:
number
|
string
;
data
:
T
;
message
?:
string
;
message
?:
string
;
msg
?:
string
;
msg
?:
string
;
success
?:
boolean
;
success
?:
boolean
;
data
:
T
;
}
}
export
interface
PageData
<
T
=
unknown
>
{
export
interface
PageData
<
T
=
unknown
>
{
list
:
T
[];
list
:
T
[];
total
:
number
;
page
:
number
;
page
:
number
;
pageSize
:
number
;
pageSize
:
number
;
total
:
number
;
}
}
/** 请求配置 */
/** 请求配置 */
export
interface
RequestConfig
{
export
interface
RequestConfig
{
params
?:
Record
<
string
,
unknown
>
;
headers
?:
Record
<
string
,
string
>
;
[
key
:
string
]:
unknown
;
[
key
:
string
]:
unknown
;
headers
?:
Record
<
string
,
string
>
;
params
?:
Record
<
string
,
unknown
>
;
}
}
const
defaultBaseURL
=
import
.
meta
.
env
.
VITE_API_BASE_URL
??
""
;
const
defaultBaseURL
=
import
.
meta
.
env
.
VITE_API_BASE_URL
??
""
;
...
...
apps/web/venus-usedcar-quality/src/views/car-detail/components/rating-guide-content.ts
View file @
3baa379
...
@@ -3,16 +3,16 @@
...
@@ -3,16 +3,16 @@
export
type
RatingGuideGrade
=
"A"
|
"B"
|
"C"
|
"D"
;
export
type
RatingGuideGrade
=
"A"
|
"B"
|
"C"
|
"D"
;
export
interface
RatingGuideLevel
{
export
interface
RatingGuideLevel
{
description
:
string
;
examples
:
string
[];
grade
:
RatingGuideGrade
;
grade
:
RatingGuideGrade
;
/** 标题中「级」后的说明,如「无损伤」→ 展示为「A级:无损伤」 */
/** 标题中「级」后的说明,如「无损伤」→ 展示为「A级:无损伤」 */
subtitle
:
string
;
subtitle
:
string
;
description
:
string
;
examples
:
string
[];
}
}
export
interface
RatingGuideConfig
{
export
interface
RatingGuideConfig
{
title
:
string
;
levels
:
RatingGuideLevel
[];
levels
:
RatingGuideLevel
[];
title
:
string
;
}
}
/** 各级徽章背景色(与设计稿一致) */
/** 各级徽章背景色(与设计稿一致) */
...
...
apps/web/venus-usedcar-quality/src/views/car-detail/composables/useInspectSubmit.ts
View file @
3baa379
...
@@ -219,7 +219,12 @@ export function useInspectSubmit(
...
@@ -219,7 +219,12 @@ export function useInspectSubmit(
}
}
return
;
return
;
}
}
showToast
(
"评分已提交"
);
showToast
({
message
:
"评分已提交"
,
onClose
:
()
=>
{
router
.
replace
({
name
:
"Home"
});
},
});
}
catch
(
error
)
{
}
catch
(
error
)
{
if
(
!
isRequestFailureAlreadyHandled
(
error
))
{
if
(
!
isRequestFailureAlreadyHandled
(
error
))
{
showToast
(
"提交失败,请重试"
);
showToast
(
"提交失败,请重试"
);
...
...
apps/web/venus-usedcar-quality/src/views/car-detail/index.vue
View file @
3baa379
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
round
round
type=
"primary"
type=
"primary"
@
click=
"onSubmitScore"
>
@
click=
"onSubmitScore"
>
提交评分
完成检测
</van-button>
</van-button>
</
template
>
</
template
>
<!-- 普通检测页:有二级时上一步 + 下一步;无二级时仅下一步(全宽) -->
<!-- 普通检测页:有二级时上一步 + 下一步;无二级时仅下一步(全宽) -->
...
...
apps/web/venus-usedcar-quality/src/views/home/index.vue
View file @
3baa379
...
@@ -351,8 +351,8 @@ void onRefresh();
...
@@ -351,8 +351,8 @@ void onRefresh();
</van-pull-refresh>
</van-pull-refresh>
</div>
</div>
<van-dialog
:show=
"rejectReasonDialogVisible"
<van-dialog
:show=
"rejectReasonDialogVisible"
title=
"驳回原因"
show-cancel-button
show-cancel-button
title=
"驳回原因"
@
update:show=
"rejectReasonDialogVisible = $event"
>
@
update:show=
"rejectReasonDialogVisible = $event"
>
<div
class=
"reject-reason-dialog-content"
>
<div
class=
"reject-reason-dialog-content"
>
{{
rejectReasonContent
||
"暂无驳回原因"
}}
{{
rejectReasonContent
||
"暂无驳回原因"
}}
...
...
apps/web/venus-usedcar-quality/src/views/inspect-detail/index.vue
View file @
3baa379
...
@@ -7,25 +7,25 @@ import { useRoute } from "vue-router";
...
@@ -7,25 +7,25 @@ import { useRoute } from "vue-router";
import
{
detail
}
from
"@api/modules/inspect-report"
;
import
{
detail
}
from
"@api/modules/inspect-report"
;
interface
InspectItem
{
interface
InspectItem
{
name
:
string
;
status
:
"abnormal"
|
"normal"
;
descriptions
:
string
[];
descriptions
:
string
[];
images
:
string
[];
images
:
string
[];
name
:
string
;
status
:
"abnormal"
|
"normal"
;
videos
:
string
[];
videos
:
string
[];
}
}
interface
InspectCategory
{
interface
InspectCategory
{
items
:
InspectItem
[];
name
:
string
;
name
:
string
;
totalCount
:
number
;
totalCount
:
number
;
items
:
InspectItem
[];
}
}
interface
DisplayGroup
{
interface
DisplayGroup
{
type
:
"abnormal"
|
"normal"
;
label
:
string
;
icon
:
string
;
icon
:
string
;
iconColor
:
string
;
iconColor
:
string
;
items
:
InspectItem
[];
items
:
InspectItem
[];
label
:
string
;
type
:
"abnormal"
|
"normal"
;
}
}
const
MAX_VISIBLE
=
5
;
const
MAX_VISIBLE
=
5
;
...
...
apps/web/venus-usedcar-quality/tsconfig.json
View file @
3baa379
...
@@ -9,15 +9,15 @@
...
@@ -9,15 +9,15 @@
"module"
:
"ESNext"
,
"module"
:
"ESNext"
,
"moduleResolution"
:
"bundler"
,
"moduleResolution"
:
"bundler"
,
"paths"
:
{
"paths"
:
{
"@/*"
:
[
"
apps/web/venus-usedcar-quality/
src/*"
],
"@/*"
:
[
"src/*"
],
"@api"
:
[
"
apps/web/venus-usedcar-quality/
src/api/index.ts"
],
"@api"
:
[
"src/api/index.ts"
],
"@assets/*"
:
[
"
apps/web/venus-usedcar-quality/
src/assets/*"
],
"@assets/*"
:
[
"src/assets/*"
],
"@views/*"
:
[
"
apps/web/venus-usedcar-quality/
src/views/*"
],
"@views/*"
:
[
"src/views/*"
],
"@components/*"
:
[
"
apps/web/venus-usedcar-quality/
src/components/*"
],
"@components/*"
:
[
"src/components/*"
],
"@stores/*"
:
[
"
apps/web/venus-usedcar-quality/
src/stores/*"
],
"@stores/*"
:
[
"src/stores/*"
],
"@utils/*"
:
[
"
apps/web/venus-usedcar-quality/
src/utils/*"
],
"@utils/*"
:
[
"src/utils/*"
],
"@api/*"
:
[
"
apps/web/venus-usedcar-quality/
src/api/*"
],
"@api/*"
:
[
"src/api/*"
],
"@composables/*"
:
[
"
apps/web/venus-usedcar-quality/
src/composables/*"
]
"@composables/*"
:
[
"src/composables/*"
]
},
},
"resolveJsonModule"
:
true
,
"resolveJsonModule"
:
true
,
"types"
:
[
"vite/client"
],
"types"
:
[
"vite/client"
],
...
@@ -33,9 +33,8 @@
...
@@ -33,9 +33,8 @@
},
},
"references"
:
[{
"path"
:
"./tsconfig.node.json"
}],
"references"
:
[{
"path"
:
"./tsconfig.node.json"
}],
"include"
:
[
"include"
:
[
//
"env.d.ts"
,
"src/**/*.ts"
,
"apps/web/venus-usedcar-quality/src/**/*.ts"
,
"src/**/*.tsx"
,
"apps/web/venus-usedcar-quality/src/**/*.tsx"
,
"src/**/*.vue"
"apps/web/venus-usedcar-quality/src/**/*.vue"
]
]
}
}
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