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 fe46ba2e
authored
Apr 17, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 车辆检测功能开发
1 parent
6c49a29c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
232 additions
and
25 deletions
aus-front/admin/src/api/DetectionController.ts
aus-front/admin/src/views/detection/order/DetectionOrderEdit.vue
aus-front/admin/src/views/detection/order/components/CustomizeFormButtonSelect.vue
aus-front/admin/src/views/detection/order/components/TestingScore.vue
aus-front/admin/src/api/DetectionController.ts
View file @
fe46ba2
...
@@ -116,4 +116,8 @@ export class DetectionController {
...
@@ -116,4 +116,8 @@ export class DetectionController {
return
axios
.
post
(
'inspect/record/save'
,
params
);
return
axios
.
post
(
'inspect/record/save'
,
params
);
}
}
static
completeInspection
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspectionRecord/completeInspection'
,
params
);
}
}
}
aus-front/admin/src/views/detection/order/DetectionOrderEdit.vue
View file @
fe46ba2
...
@@ -15,6 +15,9 @@
...
@@ -15,6 +15,9 @@
<div
class=
"customizeFormBox"
>
<div
class=
"customizeFormBox"
>
<CustomizeForm
ref=
"customizeFormRef"
@
submitSuccess=
"getTemplateData('0')"
/>
<CustomizeForm
ref=
"customizeFormRef"
@
submitSuccess=
"getTemplateData('0')"
/>
</div>
</div>
<!--
<div
class=
"customizeFormBox"
>
<TestingScore
ref=
"testingScoreRef"
/>
</div>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -24,12 +27,13 @@ import { PaginationComponent } from "@/components/PaginationComponent";
...
@@ -24,12 +27,13 @@ import { PaginationComponent } from "@/components/PaginationComponent";
import
{
Vehicle
}
from
"lib/src/entity/vehicle/entity/Vehicle"
;
import
{
Vehicle
}
from
"lib/src/entity/vehicle/entity/Vehicle"
;
import
InformationEdit
from
"@/views/detection/order/components/InformationEdit.vue"
;
import
InformationEdit
from
"@/views/detection/order/components/InformationEdit.vue"
;
import
CustomizeForm
from
"@/views/detection/order/components/CustomizeForm.vue"
;
import
CustomizeForm
from
"@/views/detection/order/components/CustomizeForm.vue"
;
import
TestingScore
from
"@/views/detection/order/components/TestingScore.vue"
;
import
{
DetectionController
}
from
"@/api/DetectionController"
;
import
{
DetectionController
}
from
"@/api/DetectionController"
;
import
{
CheckCircleFilled
}
from
'@ant-design/icons-vue'
import
{
CheckCircleFilled
}
from
'@ant-design/icons-vue'
@
Component
({
@
Component
({
components
:
{
InformationEdit
,
CustomizeForm
,
CheckCircleFilled
}
components
:
{
InformationEdit
,
CustomizeForm
,
CheckCircleFilled
,
TestingScore
}
})
})
export
default
class
DetectionOrderEdit
extends
PaginationComponent
<
Vehicle
>
{
export
default
class
DetectionOrderEdit
extends
PaginationComponent
<
Vehicle
>
{
...
@@ -60,7 +64,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -60,7 +64,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
getTemplateData
(
status
)
{
getTemplateData
(
status
)
{
const
routeData
=
this
.
$route
.
query
||
{};
const
routeData
=
this
.
$route
.
query
||
{};
DetectionController
.
inspectionTemplate
(
this
.
axios
,
{
id
:
routeData
.
id
,
status
}).
then
(
response
=>
{
DetectionController
.
inspectionTemplate
(
this
.
axios
,
{
id
:
routeData
.
id
,
status
}).
then
(
response
=>
{
this
.
nodeList
=
(
response
?.
data
?.
data
||
[]).
filter
(
item
=>
item
.
nodeName
)
;
this
.
nodeList
=
response
?.
data
?.
data
||
[]
;
if
(
status
==
'1'
)
{
if
(
status
==
'1'
)
{
this
.
activeNodeId
=
this
.
nodeList
[
0
].
id
||
null
;
this
.
activeNodeId
=
this
.
nodeList
[
0
].
id
||
null
;
this
.
getInspectionNodeData
(
this
.
activeNodeId
);
this
.
getInspectionNodeData
(
this
.
activeNodeId
);
...
@@ -142,8 +146,10 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -142,8 +146,10 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
handleNodeList
(
item
:
any
)
{
handleNodeList
(
item
:
any
)
{
this
.
activeNodeId
=
item
.
id
;
this
.
activeNodeId
=
item
.
id
;
if
(
Number
(
item
.
id
)
>
0
)
{
this
.
getInspectionNodeData
(
this
.
activeNodeId
);
this
.
getInspectionNodeData
(
this
.
activeNodeId
);
}
}
}
handleBack
()
{
handleBack
()
{
this
.
$router
.
back
();
this
.
$router
.
back
();
...
...
aus-front/admin/src/views/detection/order/components/CustomizeFormButtonSelect.vue
View file @
fe46ba2
...
@@ -69,29 +69,6 @@ export default class CustomizeFormButtonSelect extends Vue {
...
@@ -69,29 +69,6 @@ export default class CustomizeFormButtonSelect extends Vue {
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
.buttonSelect
{
float
:
left
;
width
:
100%
;
background
:
#fff
;
}
.title
{
float
:
left
;
width
:
100%
;
height
:
24px
;
padding-left
:
16px
;
margin-top
:
16px
;
margin-bottom
:
10px
;
font-size
:
14px
;
line-height
:
24px
;
color
:
#141e34
;
}
.isRequired
{
padding-right
:
2px
;
font-size
:
14px
;
color
:
#ee3040
;
}
.selectList
{
.selectList
{
width
:
100%
;
width
:
100%
;
...
...
aus-front/admin/src/views/detection/order/components/TestingScore.vue
0 → 100644
View file @
fe46ba2
<
template
>
<div>
<a-form
layout=
"vertical"
ref=
"formRef"
>
<div>
<a-form-item
label=
"外观评分"
:rules=
"[
{ required: true, message: '请输入外观评分' }]">
<div
class=
"score-ticks"
>
<span>
0
</span><span>
20
</span><span>
40
</span><span>
60
</span><span>
80
</span><span>
100
</span>
</div>
<a-slider
id=
"exteriorScoreId"
v-model:value=
"postData.exteriorScore"
/>
</a-form-item>
<a-form-item
label=
"评分依据"
:rules=
"[
{ required: true, message: '请说明外观主要扣分项' }]">
<a-textarea
v-model:value=
"postData.exteriorComment"
placeholder=
"请查验外观主要划分级别。如:全车多处刮痕,右后侧碰撞有修复痕迹..."
:auto-size=
"
{ minRows: 2, maxRows: 5 }" />
</a-form-item>
</div>
<div>
<a-form-item
label=
"骨架评级"
:rules=
"[
{ required: true, message: '请输入骨架评级' }]">
<div
class=
"selectList"
>
<div
v-for=
"(col, index) in columnsList"
:key=
"index"
class=
"selectBut"
:class=
"
{ 'pitchOn': postData.skeletonLevel == col.value }"
@click="postData.skeletonLevel = col.value">
{{
col
.
text
}}
<div
v-if=
"postData.skeletonLevel == col.value"
class=
"pitchImg"
></div>
</div>
</div>
</a-form-item>
<a-form-item
label=
"评分依据"
:rules=
"[
{ required: true, message: '请查验车辆骨架相关部位和程度' }]">
<a-textarea
v-model:value=
"postData.skeletonComment"
placeholder=
"请查验车辆骨架相关部位和程度。如:右前翼子板头部从轻微形变影响整形..."
:auto-size=
"
{ minRows: 2, maxRows: 5 }" />
</a-form-item>
</div>
<div>
<a-form-item
label=
"内饰评级"
:rules=
"[
{ required: true, message: '请输入内饰评级' }]">
<div
class=
"selectList"
>
<div
v-for=
"(col, index) in columnsList"
:key=
"index"
class=
"selectBut"
:class=
"
{ 'pitchOn': postData.interiorLevel == col.value }"
@click="postData.interiorLevel = col.value">
{{
col
.
text
}}
<div
v-if=
"postData.interiorLevel == col.value"
class=
"pitchImg"
></div>
</div>
</div>
</a-form-item>
<a-form-item
label=
"评分依据"
:rules=
"[
{ required: true, message: '请查验车辆内饰相关部位和程度' }]">
<a-textarea
v-model:value=
"postData.interiorComment"
placeholder=
"请查验车辆内饰相关部位和程度。如:右前翼子板头部从轻微形变影响整形..."
:auto-size=
"
{ minRows: 2, maxRows: 5 }" />
</a-form-item>
</div>
<div>
<a-form-item
label=
"综合评分"
:rules=
"[
{ required: true, message: '请输入综合评分' }]">
<div
class=
"score-ticks"
>
<span>
0
</span><span>
20
</span><span>
40
</span><span>
60
</span><span>
80
</span><span>
100
</span>
</div>
<a-slider
id=
"overallScoreId"
v-model:value=
"postData.overallScore"
/>
</a-form-item>
<a-form-item
label=
"综合评价"
:rules=
"[
{ required: true, message: '请对车辆综合情况进行评价...' }]">
<a-textarea
v-model:value=
"postData.overallComment"
placeholder=
"请对车辆综合情况进行评价..."
:auto-size=
"
{ minRows: 2, maxRows: 5 }" />
</a-form-item>
</div>
</a-form>
<div
class=
"footer-submit"
>
<a-button
type=
"primary"
@
click=
"submitForm()"
class=
"mr-10"
>
保存
</a-button>
<a-button
@
click=
"handleBack()"
>
取消
</a-button>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"vue-facing-decorator"
;
import
TitleDivider
from
"@/components/TitleDivider.vue"
;
import
{
DetectionController
}
from
"@/api/DetectionController"
;
import
{
message
}
from
"ant-design-vue"
;
@
Component
({
components
:
{
TitleDivider
}
})
export
default
class
TestingScore
extends
Vue
{
columnsList
:
any
=
[{
value
:
"A"
,
text
:
"A"
,
},
{
value
:
"B"
,
text
:
"B"
,
},
{
value
:
"C"
,
text
:
"C"
,
},
{
value
:
"D"
,
text
:
"D"
,
}];
postData
=
{
taskId
:
""
,
exteriorScore
:
0
,
exteriorComment
:
""
,
skeletonLevel
:
0
,
skeletonComment
:
""
,
interiorLevel
:
0
,
interiorComment
:
""
,
overallScore
:
0
,
overallComment
:
""
,
}
created
():
void
{
this
.
getInspectionNodeData
();
}
getInspectionNodeData
()
{
const
routeData
=
this
.
$route
.
query
||
{};
DetectionController
.
inspectionNode
(
this
.
axios
,
{
id
:
-
1
,
taskId
:
routeData
.
id
}).
then
(
response
=>
{
const
data
=
response
.
data
.
data
||
[];
if
(
data
.
length
>
0
)
{
const
inspectionScore
=
data
[
0
].
inspectionScoreVO
||
{};
this
.
postData
=
{
...
this
.
postData
,
...
inspectionScore
};
}
});
}
submitForm
()
{
if
(
!
this
.
postData
.
exteriorScore
)
{
message
.
error
(
'请输入外观评分'
);
return
;
}
if
(
!
this
.
postData
.
exteriorComment
)
{
message
.
error
(
'请说明外观主要扣分项'
);
return
;
}
if
(
!
this
.
postData
.
skeletonLevel
)
{
message
.
error
(
'请输入骨架评级'
);
return
;
}
if
(
!
this
.
postData
.
skeletonComment
)
{
message
.
error
(
'请查验车辆骨架相关部位和程度'
);
return
;
}
if
(
!
this
.
postData
.
interiorLevel
)
{
message
.
error
(
'请输入内饰评级'
);
return
;
}
if
(
!
this
.
postData
.
interiorComment
)
{
message
.
error
(
'请查验车辆内饰相关部位和程度'
);
return
;
}
if
(
!
this
.
postData
.
overallScore
)
{
message
.
error
(
'请输入综合评分'
);
return
;
}
if
(
!
this
.
postData
.
overallComment
)
{
message
.
error
(
'请对车辆综合情况进行评价...'
);
return
;
}
const
routeData
=
this
.
$route
.
query
||
{};
const
postData
=
{
...
this
.
postData
,
taskId
:
routeData
.
id
,
};
DetectionController
.
completeInspection
(
this
.
axios
,
postData
).
then
(
response
=>
{
const
res
=
response
?.
data
||
{};
if
(
res
.
code
===
"200"
)
{
message
.
success
(
res
.
message
||
'保存成功'
);
}
else
{
message
.
error
(
res
.
message
||
'保存失败'
);
}
}).
catch
(
error
=>
{
message
.
error
(
'保存失败,请重试'
);
console
.
error
(
'保存失败:'
,
error
);
});
}
handleBack
()
{
this
.
$router
.
back
();
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.score-ticks
{
display
:
flex
;
justify-content
:
space-between
;
padding
:
0
4px
;
font-size
:
14px
;
color
:
#999
;
}
.footer-submit
{
width
:
100%
;
margin-top
:
20px
;
border-top
:
1px
solid
#f2f4f7
;
display
:
flex
;
padding
:
16px
0
;
}
.selectList
{
width
:
100%
;
}
.selectBut
{
position
:
relative
;
float
:
left
;
min-width
:
160px
;
padding
:
0
24px
;
height
:
36px
;
margin-right
:
6px
;
margin-bottom
:
12px
;
margin-left
:
6px
;
font-size
:
14px
;
font-weight
:
400
;
line-height
:
36px
;
color
:
#333
;
text-align
:
center
;
cursor
:
pointer
;
background
:
#f9f9f9
;
border
:
1px
solid
#f9f9f9
;
border-radius
:
6px
;
}
.pitchOn
{
color
:
#185EFE
!important
;
background
:
#ecf1ff
!important
;
border
:
1px
solid
#185efe
!important
;
}
.pitchImg
{
position
:
absolute
;
top
:
0
;
right
:
0
;
z-index
:
99
;
width
:
16px
;
height
:
16px
;
background-image
:
url("https://img02.glsx.com.cn/aus/images/preference/pitchOn.png")
;
background-repeat
:
no-repeat
;
background-size
:
100%
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
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