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 b15cff82
authored
Mar 26, 2026
by
chenwq1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 凭证
1 parent
8607441f
Pipeline
#127
for
b15cff82
failed
in 0 seconds
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
25 deletions
apps/web/venus-usedcar-quality/src/components.d.ts
apps/web/venus-usedcar-quality/src/views/car-detail/components/ScoreForm.vue
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/mine/index.vue
apps/web/venus-usedcar-quality/tsconfig.json
apps/web/venus-usedcar-quality/src/components.d.ts
View file @
b15cff8
...
@@ -7,22 +7,23 @@ export {}
...
@@ -7,22 +7,23 @@ export {}
declare
module
'vue'
{
declare
module
'vue'
{
export
interface
GlobalComponents
{
export
interface
GlobalComponents
{
ButtonSelect
:
typeof
import
(
'./components/
c
ustomizeForm/buttonSelect.vue'
)[
'default'
]
ButtonSelect
:
typeof
import
(
'./components/
C
ustomizeForm/buttonSelect.vue'
)[
'default'
]
ButtonSelectAndImageUpload
:
typeof
import
(
'./components/
c
ustomizeForm/buttonSelectAndImageUpload.vue'
)[
'default'
]
ButtonSelectAndImageUpload
:
typeof
import
(
'./components/
C
ustomizeForm/buttonSelectAndImageUpload.vue'
)[
'default'
]
CustomizeUploadFile
:
typeof
import
(
'./components/
c
ustomizeForm/customizeUploadFile.vue'
)[
'default'
]
CustomizeUploadFile
:
typeof
import
(
'./components/
C
ustomizeForm/customizeUploadFile.vue'
)[
'default'
]
Index
:
typeof
import
(
'./components/
c
ustomizeForm/Index.vue'
)[
'default'
]
Index
:
typeof
import
(
'./components/
C
ustomizeForm/Index.vue'
)[
'default'
]
Layouts
:
typeof
import
(
'./layouts/index.vue'
)[
'default'
]
Layouts
:
typeof
import
(
'./layouts/index.vue'
)[
'default'
]
LogoutConfirmModal
:
typeof
import
(
'./components/LogoutConfirmModal.vue'
)[
'default'
]
LogoutConfirmModal
:
typeof
import
(
'./components/LogoutConfirmModal.vue'
)[
'default'
]
PageTitle
:
typeof
import
(
'./components/PageTitle.vue'
)[
'default'
]
PageTitle
:
typeof
import
(
'./components/PageTitle.vue'
)[
'default'
]
PageTop
:
typeof
import
(
'./components/PageTop.vue'
)[
'default'
]
PageTop
:
typeof
import
(
'./components/PageTop.vue'
)[
'default'
]
RadioSelect
:
typeof
import
(
'./components/
c
ustomizeForm/radioSelect.vue'
)[
'default'
]
RadioSelect
:
typeof
import
(
'./components/
C
ustomizeForm/radioSelect.vue'
)[
'default'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
SelectDatePicker
:
typeof
import
(
'./components/
c
ustomizeForm/selectDatePicker.vue'
)[
'default'
]
SelectDatePicker
:
typeof
import
(
'./components/
C
ustomizeForm/selectDatePicker.vue'
)[
'default'
]
SelectDropdown
:
typeof
import
(
'./components/
c
ustomizeForm/selectDropdown.vue'
)[
'default'
]
SelectDropdown
:
typeof
import
(
'./components/
C
ustomizeForm/selectDropdown.vue'
)[
'default'
]
VanActionSheet
:
typeof
import
(
'vant/es'
)[
'ActionSheet'
]
VanActionSheet
:
typeof
import
(
'vant/es'
)[
'ActionSheet'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
VanDialog
:
typeof
import
(
'vant/es'
)[
'Dialog'
]
VanEmpty
:
typeof
import
(
'vant/es'
)[
'Empty'
]
VanEmpty
:
typeof
import
(
'vant/es'
)[
'Empty'
]
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
VanForm
:
typeof
import
(
'vant/es'
)[
'Form'
]
VanForm
:
typeof
import
(
'vant/es'
)[
'Form'
]
...
...
apps/web/venus-usedcar-quality/src/views/car-detail/components/ScoreForm.vue
View file @
b15cff8
...
@@ -40,8 +40,10 @@
...
@@ -40,8 +40,10 @@
<van-field
v-model=
"form.appearanceBasis"
<van-field
v-model=
"form.appearanceBasis"
autosize
autosize
class=
"score-textarea"
class=
"score-textarea"
:maxlength=
"BASIS_MAX_LEN"
placeholder=
"请查验外观主要划分级别。如:全车多处刮痕,右后侧碰撞有修复痕迹..."
placeholder=
"请查验外观主要划分级别。如:全车多处刮痕,右后侧碰撞有修复痕迹..."
:rows=
"3"
:rows=
"3"
show-word-limit
type=
"textarea"
/>
type=
"textarea"
/>
</div>
</div>
...
@@ -82,8 +84,10 @@
...
@@ -82,8 +84,10 @@
<van-field
v-model=
"form.frameBasis"
<van-field
v-model=
"form.frameBasis"
autosize
autosize
class=
"score-textarea"
class=
"score-textarea"
:maxlength=
"BASIS_MAX_LEN"
placeholder=
"请查验车辆骨架相关部位和程度。如:右前翼子板头部从轻微形变影响整形..."
placeholder=
"请查验车辆骨架相关部位和程度。如:右前翼子板头部从轻微形变影响整形..."
:rows=
"3"
:rows=
"3"
show-word-limit
type=
"textarea"
/>
type=
"textarea"
/>
</div>
</div>
...
@@ -122,8 +126,10 @@
...
@@ -122,8 +126,10 @@
<van-field
v-model=
"form.interiorBasis"
<van-field
v-model=
"form.interiorBasis"
autosize
autosize
class=
"score-textarea"
class=
"score-textarea"
:maxlength=
"BASIS_MAX_LEN"
placeholder=
"请查验车辆内饰相关部位和程度。如:右前翼子板头部从轻微形变影响整形..."
placeholder=
"请查验车辆内饰相关部位和程度。如:右前翼子板头部从轻微形变影响整形..."
:rows=
"3"
:rows=
"3"
show-word-limit
type=
"textarea"
/>
type=
"textarea"
/>
</div>
</div>
...
@@ -205,6 +211,14 @@ const props = defineProps<{
...
@@ -205,6 +211,14 @@ const props = defineProps<{
const
RATING_SET
=
new
Set
<
string
>
(
RATING_OPTIONS
);
const
RATING_SET
=
new
Set
<
string
>
(
RATING_OPTIONS
);
/** 评分依据(外观 / 骨架 / 内饰)单条最多字数 */
const
BASIS_MAX_LEN
=
200
;
function
clampBasisText
(
s
:
unknown
):
string
{
const
t
=
String
(
s
??
""
).
trim
();
return
t
.
length
>
BASIS_MAX_LEN
?
t
.
slice
(
0
,
BASIS_MAX_LEN
)
:
t
;
}
const
form
=
reactive
({
const
form
=
reactive
({
appearanceScore
:
0
,
appearanceScore
:
0
,
appearanceBasis
:
""
,
appearanceBasis
:
""
,
...
@@ -273,11 +287,11 @@ function normalizeRatingLevel(value: unknown): "" | ScoreRatingOption {
...
@@ -273,11 +287,11 @@ function normalizeRatingLevel(value: unknown): "" | ScoreRatingOption {
function
applyInspectionScoreVO
(
vo
:
InspectionScoreVO
)
{
function
applyInspectionScoreVO
(
vo
:
InspectionScoreVO
)
{
form
.
appearanceScore
=
scoreFieldToNumber
(
vo
.
exteriorScore
);
form
.
appearanceScore
=
scoreFieldToNumber
(
vo
.
exteriorScore
);
form
.
appearanceBasis
=
String
(
vo
.
exteriorComment
??
""
).
trim
(
);
form
.
appearanceBasis
=
clampBasisText
(
vo
.
exteriorComment
);
form
.
frameRating
=
normalizeRatingLevel
(
vo
.
skeletonLevel
);
form
.
frameRating
=
normalizeRatingLevel
(
vo
.
skeletonLevel
);
form
.
frameBasis
=
String
(
vo
.
skeletonComment
??
""
).
trim
(
);
form
.
frameBasis
=
clampBasisText
(
vo
.
skeletonComment
);
form
.
interiorRating
=
normalizeRatingLevel
(
vo
.
interiorLevel
);
form
.
interiorRating
=
normalizeRatingLevel
(
vo
.
interiorLevel
);
form
.
interiorBasis
=
String
(
vo
.
interiorComment
??
""
).
trim
(
);
form
.
interiorBasis
=
clampBasisText
(
vo
.
interiorComment
);
form
.
overallScore
=
scoreFieldToNumber
(
vo
.
overallScore
);
form
.
overallScore
=
scoreFieldToNumber
(
vo
.
overallScore
);
form
.
overallRating
=
String
(
vo
.
overallComment
??
""
).
trim
();
form
.
overallRating
=
String
(
vo
.
overallComment
??
""
).
trim
();
}
}
...
@@ -364,6 +378,14 @@ function validate(): boolean {
...
@@ -364,6 +378,14 @@ function validate(): boolean {
showToast
(
"请填完需评分必填项"
);
showToast
(
"请填完需评分必填项"
);
return
false
;
return
false
;
}
}
if
(
appearanceBasis
.
length
>
BASIS_MAX_LEN
||
frameBasis
.
length
>
BASIS_MAX_LEN
||
interiorBasis
.
length
>
BASIS_MAX_LEN
)
{
showToast
(
`评分依据每项不超过
${
BASIS_MAX_LEN
}
字`
);
return
false
;
}
return
true
;
return
true
;
}
}
...
...
apps/web/venus-usedcar-quality/src/views/car-detail/index.vue
View file @
b15cff8
apps/web/venus-usedcar-quality/src/views/home/index.vue
View file @
b15cff8
...
@@ -8,7 +8,6 @@ import { useRouter } from "vue-router";
...
@@ -8,7 +8,6 @@ import { useRouter } from "vue-router";
import
{
getWorkOrderCountByStatus
,
getWorkOrderPage
}
from
"@/api/modules/work-order"
;
import
{
getWorkOrderCountByStatus
,
getWorkOrderPage
}
from
"@/api/modules/work-order"
;
import
PageTop
from
"@/components/PageTop.vue"
;
import
PageTop
from
"@/components/PageTop.vue"
;
import
WorkOrderStatusTags
from
"@/components/WorkOrderStatusTags.vue"
;
import
WorkOrderStatusTags
from
"@/components/WorkOrderStatusTags.vue"
;
import
{
showToast
}
from
"vant"
;
const
keyword
=
ref
(
""
);
const
keyword
=
ref
(
""
);
const
activeStatus
=
ref
<
WorkOrderStatus
>
(
1
);
const
activeStatus
=
ref
<
WorkOrderStatus
>
(
1
);
...
@@ -20,6 +19,8 @@ const displayList = ref<WorkOrderItem[]>([]);
...
@@ -20,6 +19,8 @@ const displayList = ref<WorkOrderItem[]>([]);
const
currentPage
=
ref
(
1
);
const
currentPage
=
ref
(
1
);
const
scroller
=
ref
<
Element
|
undefined
>
(
undefined
);
const
scroller
=
ref
<
Element
|
undefined
>
(
undefined
);
const
router
=
useRouter
();
const
router
=
useRouter
();
const
rejectReasonDialogVisible
=
ref
(
false
);
const
rejectReasonContent
=
ref
(
""
);
const
tabCounts
=
ref
({
const
tabCounts
=
ref
({
dispatchedCount
:
0
,
dispatchedCount
:
0
,
inProgressCount
:
0
,
inProgressCount
:
0
,
...
@@ -66,6 +67,10 @@ function mapWorkOrderItem(item: Record<string, unknown>): WorkOrderItem {
...
@@ -66,6 +67,10 @@ function mapWorkOrderItem(item: Record<string, unknown>): WorkOrderItem {
id
:
String
(
item
.
id
??
""
),
id
:
String
(
item
.
id
??
""
),
status
:
(
item
.
status
as
WorkOrderStatus
)
??
1
,
status
:
(
item
.
status
as
WorkOrderStatus
)
??
1
,
auditStatus
:
item
.
auditStatus
as
AuditStatus
|
undefined
,
auditStatus
:
item
.
auditStatus
as
AuditStatus
|
undefined
,
auditContent
:
item
.
auditContent
==
null
?
undefined
:
String
(
item
.
auditContent
),
orderNo
:
(
item
.
woId
as
string
|
undefined
)
??
""
,
orderNo
:
(
item
.
woId
as
string
|
undefined
)
??
""
,
carTitle
:
[
brand
,
series
,
typeName
].
filter
(
Boolean
).
join
(
" "
),
carTitle
:
[
brand
,
series
,
typeName
].
filter
(
Boolean
).
join
(
" "
),
plateNo
:
(
baseInfo
.
licensePlate
as
string
|
undefined
)
??
"-"
,
plateNo
:
(
baseInfo
.
licensePlate
as
string
|
undefined
)
??
"-"
,
...
@@ -172,7 +177,8 @@ function viewReport(item: WorkOrderItem) {
...
@@ -172,7 +177,8 @@ function viewReport(item: WorkOrderItem) {
}
}
function
showRejectReason
(
_item
:
WorkOrderItem
)
{
function
showRejectReason
(
_item
:
WorkOrderItem
)
{
showToast
(
_item
.
auditContent
??
""
);
rejectReasonContent
.
value
=
_item
.
auditContent
??
""
;
rejectReasonDialogVisible
.
value
=
true
;
}
}
function
getCardActions
(
item
:
WorkOrderItem
):
CardAction
[]
{
function
getCardActions
(
item
:
WorkOrderItem
):
CardAction
[]
{
...
@@ -344,6 +350,14 @@ void onRefresh();
...
@@ -344,6 +350,14 @@ void onRefresh();
</van-list>
</van-list>
</van-pull-refresh>
</van-pull-refresh>
</div>
</div>
<van-dialog
:show=
"rejectReasonDialogVisible"
title=
"驳回原因"
show-cancel-button
@
update:show=
"rejectReasonDialogVisible = $event"
>
<div
class=
"reject-reason-dialog-content"
>
{{
rejectReasonContent
||
"暂无驳回原因"
}}
</div>
</van-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -568,4 +582,10 @@ void onRefresh();
...
@@ -568,4 +582,10 @@ void onRefresh();
font-size
:
12px
;
font-size
:
12px
;
}
}
}
}
.reject-reason-dialog-content
{
padding
:
12px
16px
;
line-height
:
1.5
;
word-break
:
break-all
;
}
</
style
>
</
style
>
apps/web/venus-usedcar-quality/src/views/mine/index.vue
View file @
b15cff8
apps/web/venus-usedcar-quality/tsconfig.json
View file @
b15cff8
...
@@ -9,15 +9,15 @@
...
@@ -9,15 +9,15 @@
"module"
:
"ESNext"
,
"module"
:
"ESNext"
,
"moduleResolution"
:
"bundler"
,
"moduleResolution"
:
"bundler"
,
"paths"
:
{
"paths"
:
{
"@/*"
:
[
"src/*"
],
"@/*"
:
[
"
apps/web/venus-usedcar-quality/
src/*"
],
"@api"
:
[
"src/api/index.ts"
],
"@api"
:
[
"
apps/web/venus-usedcar-quality/
src/api/index.ts"
],
"@assets/*"
:
[
"src/assets/*"
],
"@assets/*"
:
[
"
apps/web/venus-usedcar-quality/
src/assets/*"
],
"@views/*"
:
[
"src/views/*"
],
"@views/*"
:
[
"
apps/web/venus-usedcar-quality/
src/views/*"
],
"@components/*"
:
[
"src/components/*"
],
"@components/*"
:
[
"
apps/web/venus-usedcar-quality/
src/components/*"
],
"@stores/*"
:
[
"src/stores/*"
],
"@stores/*"
:
[
"
apps/web/venus-usedcar-quality/
src/stores/*"
],
"@utils/*"
:
[
"src/utils/*"
],
"@utils/*"
:
[
"
apps/web/venus-usedcar-quality/
src/utils/*"
],
"@api/*"
:
[
"src/api/*"
],
"@api/*"
:
[
"
apps/web/venus-usedcar-quality/
src/api/*"
],
"@composables/*"
:
[
"src/composables/*"
]
"@composables/*"
:
[
"
apps/web/venus-usedcar-quality/
src/composables/*"
]
},
},
"resolveJsonModule"
:
true
,
"resolveJsonModule"
:
true
,
"types"
:
[
"vite/client"
],
"types"
:
[
"vite/client"
],
...
@@ -33,9 +33,9 @@
...
@@ -33,9 +33,9 @@
},
},
"references"
:
[{
"path"
:
"./tsconfig.node.json"
}],
"references"
:
[{
"path"
:
"./tsconfig.node.json"
}],
"include"
:
[
"include"
:
[
"env.d.ts"
,
//
"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