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 2021402c
authored
Apr 16, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 车辆检测编辑
1 parent
819f67e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
aus-front/admin/src/views/detection/order/DetectionOrderEdit.vue
aus-front/admin/src/views/detection/order/components/CustomizeForm.vue
aus-front/admin/src/views/detection/order/DetectionOrderEdit.vue
View file @
2021402
...
@@ -78,8 +78,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -78,8 +78,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
getCarTypeList
(
id
)
{
getCarTypeList
(
id
)
{
DetectionController
.
getCarTypeList
(
this
.
axios
,
{
csId
:
id
}).
then
(
response
=>
{
DetectionController
.
getCarTypeList
(
this
.
axios
,
{
csId
:
id
}).
then
(
response
=>
{
const
data
=
response
?.
data
?.
data
||
{};
const
data
=
response
?.
data
?.
data
||
{};
this
.
carTypeList
=
data
.
carinfos
||
[];
this
.
carTypeList
=
(
data
.
carinfos
||
[]).
map
(
item
=>
({
text
:
item
.
name
||
""
,
value
:
item
.
id
||
""
}));
console
.
log
(
this
.
carTypeList
);
});
});
}
}
...
@@ -110,6 +109,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -110,6 +109,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
}
}
this
.
$refs
.
customizeFormRef
.
init
({
this
.
$refs
.
customizeFormRef
.
init
({
customizeFormList
:
this
.
inspectionNodeList
,
customizeFormList
:
this
.
inspectionNodeList
,
carTypeList
:
this
.
carTypeList
,
});
});
});
});
}
}
...
...
aus-front/admin/src/views/detection/order/components/CustomizeForm.vue
View file @
2021402
...
@@ -7,11 +7,23 @@
...
@@ -7,11 +7,23 @@
<title-divider
:title=
"columns.nodeName"
></title-divider>
<title-divider
:title=
"columns.nodeName"
></title-divider>
<a-row>
<a-row>
<a-col
v-for=
"item in (columns.childrenNodes || [])"
:key=
"item.columnName"
<a-col
v-for=
"item in (columns.childrenNodes || [])"
:key=
"item.columnName"
:span=
"
item.interactionType == 'image_upload_and_button_select' ? 24 : 8
"
>
:span=
"
returnSpan(item)
"
>
<a-form-item
class=
"calc_24"
:label=
"item.nodeName"
<a-form-item
class=
"calc_24"
:rules=
"[
{ required: (item.required === 1 || (item.interactionType == 'image_upload_and_button_select'
&&
item.value)) ? true : false, message: item.placeholder }]">
:rules=
"[
{ required: (item.required === 1 || (item.interactionType == 'image_upload_and_button_select'
&&
item.value)) ? true : false, message: item.placeholder }]">
<template
#
label
>
<div
style=
"display: flex;"
>
<div>
{{
item
.
nodeName
}}
</div>
<!-- 是否支持"无此结构":0-否,1-是 -->
<div
v-if=
"item.allowNoStructure"
@
click=
"item.resultStatus = !item.resultStatus"
>
<!--
<van-icon
v-if=
"!item.resultStatus"
color=
"#666666"
name=
"circle"
size=
"14"
/>
<van-icon
v-if=
"item.resultStatus"
color=
"#185EFE"
name=
"checked"
size=
"14"
/>
-->
<span
class=
"radioText"
>
无此结构
</span>
</div>
</div>
</
template
>
<!-- 文本输入框 -->
<!-- 文本输入框 -->
<div
v-if=
"item.interactionType == 'text_input'"
>
<div
v-if=
"item.interactionType == 'text_input'"
>
<a-input
v-model:value=
"item.value"
:placeholder=
"item.placeholder"
<a-input
v-model:value=
"item.value"
:placeholder=
"item.placeholder"
...
@@ -119,7 +131,7 @@ export default class CustomizeForm extends Vue {
...
@@ -119,7 +131,7 @@ export default class CustomizeForm extends Vue {
columnsList
:
any
=
[];
columnsList
:
any
=
[];
submitted
:
boolean
=
true
;
submitted
:
boolean
=
true
;
carTypeList
:
any
=
[];
//初始化数据
//初始化数据
init
(
data
)
{
init
(
data
)
{
...
@@ -128,6 +140,7 @@ export default class CustomizeForm extends Vue {
...
@@ -128,6 +140,7 @@ export default class CustomizeForm extends Vue {
this
.
$refs
.
formRef
.
resetFields
();
this
.
$refs
.
formRef
.
resetFields
();
}
}
this
.
columnsList
=
data
.
customizeFormList
||
[];
this
.
columnsList
=
data
.
customizeFormList
||
[];
this
.
carTypeList
=
data
.
carTypeList
||
[];
console
.
log
(
'111111111111111111'
,
this
.
columnsList
);
console
.
log
(
'111111111111111111'
,
this
.
columnsList
);
}
}
...
@@ -144,7 +157,7 @@ export default class CustomizeForm extends Vue {
...
@@ -144,7 +157,7 @@ export default class CustomizeForm extends Vue {
value
:
valueList
[
0
]
||
""
,
value
:
valueList
[
0
]
||
""
,
};
};
});
});
return
optionsList
;
return
item
.
nodeName
==
'车型'
?
this
.
carTypeList
:
optionsList
;
}
}
submitForm
()
{
submitForm
()
{
...
@@ -155,6 +168,10 @@ export default class CustomizeForm extends Vue {
...
@@ -155,6 +168,10 @@ export default class CustomizeForm extends Vue {
});
});
}
}
returnSpan
(
item
:
{
interactionType
:
string
})
{
return
item
.
interactionType
===
'image_upload_and_button_select'
?
24
:
8
;
}
handleBack
()
{
handleBack
()
{
this
.
$router
.
back
();
this
.
$router
.
back
();
}
}
...
@@ -205,4 +222,10 @@ export default class CustomizeForm extends Vue {
...
@@ -205,4 +222,10 @@ export default class CustomizeForm extends Vue {
background
:
#ecf1ff
!important
;
background
:
#ecf1ff
!important
;
border
:
1px
solid
#185efe
!important
;
border
:
1px
solid
#185efe
!important
;
}
}
.radioText
{
padding-left
:
4px
;
font-size
:
12px
;
color
:
#666
;
}
</
style
>
</
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