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 8bb778b2
authored
Sep 10, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
检测工单需求开发
1 parent
e7f3d8bd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
14 deletions
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/utils/inspectInitialValues.ts
aus-front/admin/src/views/detection/order/DetectionOrderEdit.vue
View file @
8bb778b
...
@@ -55,7 +55,10 @@ import { DetectionController } from "@/api/DetectionController";
...
@@ -55,7 +55,10 @@ import { DetectionController } from "@/api/DetectionController";
import
{
CheckCircleFilled
}
from
"@ant-design/icons-vue"
;
import
{
CheckCircleFilled
}
from
"@ant-design/icons-vue"
;
import
{
TrackHelper
}
from
"@/common/TrackHelper"
;
import
{
TrackHelper
}
from
"@/common/TrackHelper"
;
import
{
Modal
}
from
"ant-design-vue"
;
import
{
Modal
}
from
"ant-design-vue"
;
import
{
applyResolvedInitialValuesToLeafNodes
}
from
"@/views/detection/order/utils/inspectInitialValues"
;
import
{
applyResolvedInitialValuesToLeafNodes
,
extractScalarFromDefaultData
,
}
from
"@/views/detection/order/utils/inspectInitialValues"
;
@
Component
({
@
Component
({
components
:
{
components
:
{
...
@@ -150,7 +153,8 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -150,7 +153,8 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
taskId
:
routeData
.
id
,
taskId
:
routeData
.
id
,
}).
then
((
response
)
=>
{
}).
then
((
response
)
=>
{
this
.
defaultData
=
response
?.
data
?.
data
||
{};
this
.
defaultData
=
response
?.
data
?.
data
||
{};
return
this
.
getCarTypeList
(
this
.
defaultData
.
carSeriesId
);
const
csId
=
extractScalarFromDefaultData
(
this
.
defaultData
,
"carSeriesId"
);
return
this
.
getCarTypeList
(
csId
);
});
});
}
}
...
...
aus-front/admin/src/views/detection/order/components/CustomizeFormButtonSelect.vue
View file @
8bb778b
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
<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"
:key=
"index"
class=
"selectBut"
:class=
"
{ 'pitchOn': pickerValue.includes(col.value), 'selectBut--readonly': readonly }" @click="handleBut(col)">
:class=
"
{ 'pitchOn': pickerValue.includes(col.value)
|| pickerValue.includes(col.text)
, 'selectBut--readonly': readonly }" @click="handleBut(col)">
{{
col
.
text
}}
{{
col
.
text
}}
<div
v-if=
"pickerValue.includes(col.value)"
class=
"pitchImg"
></div>
<div
v-if=
"pickerValue.includes(col.value)
|| pickerValue.includes(col.text)
"
class=
"pitchImg"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -44,14 +44,26 @@ export default class CustomizeFormButtonSelect extends Vue {
...
@@ -44,14 +44,26 @@ export default class CustomizeFormButtonSelect extends Vue {
this
.
pickerValue
=
[];
this
.
pickerValue
=
[];
return
;
return
;
}
}
this
.
pickerValue
=
const
valueList
=
this
.
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
this
.
item
?.
inspectionResultVO
?.
inspectionValueList
const
normalized
:
string
[]
=
[];
?.
filter
(
for
(
const
entry
of
valueList
)
{
(
entry
)
=>
if
(
!
entry
||
!
entry
.
valueText
)
continue
;
entry
.
valueKey
&&
if
(
String
(
entry
.
interactionType
??
""
)
!==
"button_select"
)
continue
;
entry
.
interactionType
==
"button_select"
,
const
preferredKey
=
String
(
entry
.
valueKey
??
""
);
)
const
preferredText
=
String
(
entry
.
valueText
??
""
);
?.
map
((
entry
)
=>
entry
.
valueKey
)
||
[];
const
matched
=
(
this
.
columnsList
||
[]).
find
(
(
col
)
=>
(
preferredKey
&&
String
(
col
.
value
)
===
preferredKey
)
||
(
preferredText
&&
String
(
col
.
text
)
===
preferredText
)
);
const
value
=
matched
?
String
(
matched
.
value
)
:
(
preferredKey
||
preferredText
);
if
(
value
&&
!
normalized
.
includes
(
value
))
{
normalized
.
push
(
value
);
}
}
this
.
pickerValue
=
normalized
;
this
.
setupdate
();
this
.
setupdate
();
}
}
...
@@ -75,8 +87,17 @@ export default class CustomizeFormButtonSelect extends Vue {
...
@@ -75,8 +87,17 @@ export default class CustomizeFormButtonSelect extends Vue {
const
object
=
const
object
=
(
this
.
columnsList
||
[]).
find
(
(
this
.
columnsList
||
[]).
find
(
(
finditem
)
=>
finditem
.
value
==
item
,
(
finditem
)
=>
finditem
.
value
==
item
,
)
||
(
this
.
columnsList
||
[]).
find
(
(
finditem
)
=>
finditem
.
text
==
item
,
)
||
{};
)
||
{};
return
{
valueText
:
object
.
text
||
""
,
valueKey
:
item
||
""
};
const
pickedKey
=
object
.
value
??
item
??
""
;
const
pickedText
=
object
.
text
||
(
item
&&
!
object
.
value
?
String
(
item
)
:
""
)
||
""
;
return
{
valueText
:
pickedText
,
valueKey
:
String
(
pickedKey
),
};
});
});
const
nextValue
=
const
nextValue
=
valueList
.
length
>
0
?
JSON
.
stringify
(
valueList
)
:
""
;
valueList
.
length
>
0
?
JSON
.
stringify
(
valueList
)
:
""
;
...
@@ -139,4 +160,4 @@ export default class CustomizeFormButtonSelect extends Vue {
...
@@ -139,4 +160,4 @@ export default class CustomizeFormButtonSelect extends Vue {
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
100%
;
background-size
:
100%
;
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
</
style
>
aus-front/admin/src/views/detection/order/utils/inspectInitialValues.ts
View file @
8bb778b
This diff is collapsed.
Click to expand it.
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