Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
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 348613d7
authored
May 21, 2026
by
chenwq1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 更新修复
1 parent
c4cd3604
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
29 deletions
aus-front/admin/package.json
aus-front/admin/pnpm-lock.yaml
aus-front/admin/src/views/detection/order/DetectionOrderEdit.vue
aus-front/admin/src/views/detection/order/components/TestingScore.vue
aus-front/admin/package.json
View file @
348613d
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
"dayjs"
:
"^1.10.7"
,
"dayjs"
:
"^1.10.7"
,
"echarts"
:
"^5.2.2"
,
"echarts"
:
"^5.2.2"
,
"glsk-oss-jssdk"
:
"^1.0.
6
"
,
"glsk-oss-jssdk"
:
"^1.0.
8
"
,
"image-conversion"
:
"^2.1.1"
,
"image-conversion"
:
"^2.1.1"
,
"ionicons"
:
"^8.0.9"
,
"ionicons"
:
"^8.0.9"
,
"lib"
:
"file:../lib"
,
"lib"
:
"file:../lib"
,
...
...
aus-front/admin/pnpm-lock.yaml
View file @
348613d
...
@@ -45,8 +45,8 @@ importers:
...
@@ -45,8 +45,8 @@ importers:
specifier
:
^5.2.2
specifier
:
^5.2.2
version
:
5.6.0
version
:
5.6.0
glsk-oss-jssdk
:
glsk-oss-jssdk
:
specifier
:
^1.0.
6
specifier
:
^1.0.
8
version
:
1.0.
6
version
:
1.0.
8
image-conversion
:
image-conversion
:
specifier
:
^2.1.1
specifier
:
^2.1.1
version
:
2.1.1
version
:
2.1.1
...
@@ -1826,8 +1826,8 @@ packages:
...
@@ -1826,8 +1826,8 @@ packages:
resolution
:
{
integrity
:
sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
}
resolution
:
{
integrity
:
sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
}
engines
:
{
node
:
'
>=10'
}
engines
:
{
node
:
'
>=10'
}
glsk-oss-jssdk@1.0.
6
:
glsk-oss-jssdk@1.0.
8
:
resolution
:
{
integrity
:
sha512-
uifUcPNbb6Roas0Dlx6LRldHPwU1yQqJbQRldUaNB+e6stFvn9XrsewCueNDUty3cZw4NCg3yao2WVCUm3T2O
g==
}
resolution
:
{
integrity
:
sha512-
X6UeEMQdVJS6T6m587E+wTr7MEmpxrewGC1uX5PfonrWXIuOU3AwUD0bb1CVIMRLrKqDBcNHEfA/VlmKgwCGM
g==
}
good-listener@1.2.2
:
good-listener@1.2.2
:
resolution
:
{
integrity
:
sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==
}
resolution
:
{
integrity
:
sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==
}
...
@@ -5014,7 +5014,7 @@ snapshots:
...
@@ -5014,7 +5014,7 @@ snapshots:
merge2
:
1.4.1
merge2
:
1.4.1
slash
:
3.0.0
slash
:
3.0.0
glsk-oss-jssdk@1.0.
6
:
glsk-oss-jssdk@1.0.
8
:
dependencies
:
dependencies
:
ali-oss
:
6.23.0
ali-oss
:
6.23.0
axios
:
1.15.0
axios
:
1.15.0
...
...
aus-front/admin/src/views/detection/order/DetectionOrderEdit.vue
View file @
348613d
<
template
>
<
template
>
<div>
<div
class=
"detection-order-edit-page"
>
<div
class=
"pageBox_title"
>
<div
class=
"detection-order-edit__header"
>
编辑检测报告
<div
class=
"pageBox_title"
>
<a-button
style=
"float: right;"
@
click=
"handleBack()"
>
返回列表
</a-button>
编辑检测报告
</div>
<a-button
style=
"float: right;"
@
click=
"handleBack()"
>
返回列表
</a-button>
<InformationEdit
ref=
"informationEditRef"
:pageData=
"pageData.inspectionWORespVO ||
{}" />
</div>
<div
class=
"optionBox"
>
<InformationEdit
ref=
"informationEditRef"
:pageData=
"pageData.inspectionWORespVO ||
{}" />
<div
v-for=
"item in nodeList"
@
click=
"handleNodeList(item)"
:key=
"item.id"
<div
class=
"optionBox"
>
:class=
"
{ 'optionBut_active': item.id == activeNodeId }" class="optionBut">
<div
v-for=
"item in nodeList"
@
click=
"handleNodeList(item)"
:key=
"item.id"
{{
item
.
nodeName
}}
:class=
"
{ 'optionBut_active': item.id == activeNodeId }" class="optionBut">
<CheckCircleFilled
v-if=
"item.completedFlag == '1'"
class=
"circleFilled"
/>
{{
item
.
nodeName
}}
<CheckCircleFilled
v-if=
"item.completedFlag == '1'"
class=
"circleFilled"
/>
</div>
</div>
</div>
</div>
</div>
<div
class=
"customizeFormBox"
v-if=
"activeNodeId != -1"
>
<div
class=
"customizeFormBox"
v-if=
"activeNodeId != -1"
>
...
@@ -196,6 +198,19 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -196,6 +198,19 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
.detection-order-edit-page
{
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
min-height
:
0
;
overflow
:
hidden
;
}
.detection-order-edit__header
{
flex-shrink
:
0
;
overflow
:
hidden
;
}
.pageBox_title
{
.pageBox_title
{
width
:
100%
;
width
:
100%
;
height
:
24px
;
height
:
24px
;
...
@@ -238,8 +253,11 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -238,8 +253,11 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
}
}
.customizeFormBox
{
.customizeFormBox
{
flex
:
1
;
min-height
:
0
;
width
:
100%
;
width
:
100%
;
float
:
left
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
}
}
.circleFilled
{
.circleFilled
{
...
@@ -247,4 +265,12 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -247,4 +265,12 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
color
:
#1956fe
;
color
:
#1956fe
;
padding-left
:
2px
;
padding-left
:
2px
;
}
}
</
style
>
<
style
lang=
"less"
>
.inner-main
>
.main
:has
(
.detection-order-edit-page
)
{
display
:
flex
;
flex-direction
:
column
;
overflow
:
hidden
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
aus-front/admin/src/views/detection/order/components/TestingScore.vue
View file @
348613d
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
v-model:value=
"postData.exteriorScore"
v-model:value=
"postData.exteriorScore"
:min=
"0"
:min=
"0"
:max=
"100"
:max=
"100"
:step=
"
0.0
1"
:step=
"1"
:precision=
"
2
"
:precision=
"
0
"
:controls=
"false"
:controls=
"false"
class=
"score-value-input"
class=
"score-value-input"
placeholder=
"请输入"
placeholder=
"请输入"
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
v-model:value=
"postData.exteriorScore"
v-model:value=
"postData.exteriorScore"
:min=
"0"
:min=
"0"
:max=
"100"
:max=
"100"
:step=
"
0.0
1"
:step=
"1"
/>
/>
</div>
</div>
</div>
</div>
...
@@ -224,9 +224,9 @@
...
@@ -224,9 +224,9 @@
<a-input-number
<a-input-number
v-model:value=
"postData.overallScore"
v-model:value=
"postData.overallScore"
:min=
"0"
:min=
"0"
:max=
"
2
00"
:max=
"
1
00"
:step=
"
0.0
1"
:step=
"1"
:precision=
"
2
"
:precision=
"
0
"
:controls=
"false"
:controls=
"false"
class=
"score-value-input"
class=
"score-value-input"
placeholder=
"请对车况做整体总结,如:车况良好,仅有正常使痕迹,无重大事故..."
placeholder=
"请对车况做整体总结,如:车况良好,仅有正常使痕迹,无重大事故..."
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
v-model:value=
"postData.overallScore"
v-model:value=
"postData.overallScore"
:min=
"0"
:min=
"0"
:max=
"100"
:max=
"100"
:step=
"
0.0
1"
:step=
"1"
/>
/>
</div>
</div>
</div>
</div>
...
@@ -388,6 +388,8 @@ export default class TestingScore extends Vue {
...
@@ -388,6 +388,8 @@ export default class TestingScore extends Vue {
if
(
data
.
length
>
0
)
{
if
(
data
.
length
>
0
)
{
const
inspectionScore
=
data
[
0
].
inspectionScoreVO
||
{};
const
inspectionScore
=
data
[
0
].
inspectionScoreVO
||
{};
this
.
postData
=
{
...
this
.
postData
,
...
inspectionScore
};
this
.
postData
=
{
...
this
.
postData
,
...
inspectionScore
};
this
.
postData
.
exteriorScore
=
this
.
normalizeIntegerScore
(
this
.
postData
.
exteriorScore
);
this
.
postData
.
overallScore
=
this
.
normalizeIntegerScore
(
this
.
postData
.
overallScore
);
}
}
this
.
snapshotInitialPostData
();
this
.
snapshotInitialPostData
();
});
});
...
@@ -411,6 +413,18 @@ export default class TestingScore extends Vue {
...
@@ -411,6 +413,18 @@ export default class TestingScore extends Vue {
return
changed
.
filter
((
k
)
=>
!
ignoreKeys
.
has
(
k
));
return
changed
.
filter
((
k
)
=>
!
ignoreKeys
.
has
(
k
));
}
}
/** 将评分规范为 0–100 的整数,无效值返回 null */
normalizeIntegerScore
(
value
:
unknown
):
number
|
null
{
if
(
value
===
null
||
value
===
undefined
||
value
===
""
)
{
return
null
;
}
const
n
=
Math
.
round
(
Number
(
value
));
if
(
Number
.
isNaN
(
n
)
||
n
<
0
||
n
>
100
)
{
return
null
;
}
return
n
;
}
/** 评分为 0 视为已填写;仅 null / undefined / 空字符串 视为未填 */
/** 评分为 0 视为已填写;仅 null / undefined / 空字符串 视为未填 */
isScoreFilled
(
value
:
unknown
):
boolean
{
isScoreFilled
(
value
:
unknown
):
boolean
{
if
(
value
===
0
||
value
===
"0"
)
{
if
(
value
===
0
||
value
===
"0"
)
{
...
@@ -475,7 +489,7 @@ export default class TestingScore extends Vue {
...
@@ -475,7 +489,7 @@ export default class TestingScore extends Vue {
return
;
return
;
}
}
if
(
!
this
.
postData
.
exteriorComment
)
{
if
(
!
this
.
postData
.
exteriorComment
)
{
message
.
error
(
"请
说明外观主要扣分项
"
);
message
.
error
(
"请
输入外观评分的评分依据
"
);
return
;
return
;
}
}
if
(
!
this
.
postData
.
skeletonLevel
)
{
if
(
!
this
.
postData
.
skeletonLevel
)
{
...
@@ -483,7 +497,7 @@ export default class TestingScore extends Vue {
...
@@ -483,7 +497,7 @@ export default class TestingScore extends Vue {
return
;
return
;
}
}
if
(
!
this
.
postData
.
skeletonComment
)
{
if
(
!
this
.
postData
.
skeletonComment
)
{
message
.
error
(
"请
查验车辆骨架相关部位和程度
"
);
message
.
error
(
"请
输入骨架评级的评分依据
"
);
return
;
return
;
}
}
if
(
!
this
.
postData
.
interiorLevel
)
{
if
(
!
this
.
postData
.
interiorLevel
)
{
...
@@ -491,7 +505,7 @@ export default class TestingScore extends Vue {
...
@@ -491,7 +505,7 @@ export default class TestingScore extends Vue {
return
;
return
;
}
}
if
(
!
this
.
postData
.
interiorComment
)
{
if
(
!
this
.
postData
.
interiorComment
)
{
message
.
error
(
"请
查验车辆内饰相关部位和程度
"
);
message
.
error
(
"请
输入内饰评级的评分依据
"
);
return
;
return
;
}
}
if
(
!
this
.
isScoreFilled
(
this
.
postData
.
overallScore
))
{
if
(
!
this
.
isScoreFilled
(
this
.
postData
.
overallScore
))
{
...
@@ -499,13 +513,15 @@ export default class TestingScore extends Vue {
...
@@ -499,13 +513,15 @@ export default class TestingScore extends Vue {
return
;
return
;
}
}
if
(
!
this
.
postData
.
overallComment
)
{
if
(
!
this
.
postData
.
overallComment
)
{
message
.
error
(
"请
对车辆综合情况进行评价...
"
);
message
.
error
(
"请
输入综合评分的综合评价
"
);
return
;
return
;
}
}
const
routeData
=
this
.
$route
.
query
||
{};
const
routeData
=
this
.
$route
.
query
||
{};
const
postData
=
{
const
postData
=
{
...
this
.
postData
,
...
this
.
postData
,
taskId
:
Number
(
routeData
.
id
)
||
0
,
taskId
:
Number
(
routeData
.
id
)
||
0
,
exteriorScore
:
this
.
normalizeIntegerScore
(
this
.
postData
.
exteriorScore
),
overallScore
:
this
.
normalizeIntegerScore
(
this
.
postData
.
overallScore
),
};
};
const
modifiedFields
=
this
.
collectModifiedFieldNames
();
const
modifiedFields
=
this
.
collectModifiedFieldNames
();
DetectionController
.
inspectRecordSaveScore
(
this
.
axios
,
postData
)
DetectionController
.
inspectRecordSaveScore
(
this
.
axios
,
postData
)
...
...
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