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 8af81184
authored
Apr 16, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:pc车俩检测编辑接口联调
1 parent
376e18e8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
22 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/CustomizeForm.vue
aus-front/admin/src/views/detection/order/components/CustomizeFormButtonSelect.vue
aus-front/admin/src/views/detection/order/components/CustomizeFormButtonSelectUploadFile.vue
aus-front/admin/src/views/detection/order/components/CustomizeFormUploadFile.vue
aus-front/admin/src/api/DetectionController.ts
View file @
8af8118
...
...
@@ -112,4 +112,8 @@ export class DetectionController {
return
axios
.
get
(
'inspectionNode/'
+
params
.
id
+
'/children?taskId='
+
params
.
taskId
);
}
static
inspectRecordSave
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/record/save'
,
params
);
}
}
aus-front/admin/src/views/detection/order/DetectionOrderEdit.vue
View file @
8af8118
...
...
@@ -11,11 +11,9 @@
{{
item
.
nodeName
}}
</div>
</div>
<div
class=
"customizeFormBox"
>
<CustomizeForm
ref=
"customizeFormRef"
/>
</div>
</div>
</
template
>
...
...
@@ -86,34 +84,59 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
const
routeData
=
this
.
$route
.
query
||
{};
DetectionController
.
inspectionNode
(
this
.
axios
,
{
id
:
taskId
,
taskId
:
routeData
.
id
}).
then
(
response
=>
{
const
nodeList
=
response
?.
data
?.
data
||
[];
if
(
taskId
==
48
)
{
this
.
inspectionNodeList
=
[{
id
:
48
,
nodeName
:
"车型信息"
,
childrenNodes
:
nodeList
}];
}
else
if
(
taskId
==
60
)
{
const
taskIdMap
=
{
48
:
"车型信息"
,
60
:
"车身主图"
,
551
:
"工况视频"
};
if
(
taskIdMap
[
taskId
])
{
this
.
inspectionNodeList
=
[{
id
:
60
,
nodeName
:
"车身主图"
,
childrenNodes
:
nodeList
}];
}
else
if
(
taskId
==
551
)
{
this
.
inspectionNodeList
=
[{
id
:
551
,
nodeName
:
"工况视频"
,
id
:
taskId
,
nodeName
:
taskIdMap
[
taskId
],
childrenNodes
:
nodeList
}];
}
else
{
this
.
inspectionNodeList
=
nodeList
;
}
this
.
inspectionNodeList
=
this
.
inspectionNodeList
.
map
(
item
=>
({
...
item
,
childrenNodes
:
this
.
setDefaultData
(
item
.
childrenNodes
||
[])
}));
this
.
$refs
.
customizeFormRef
.
init
({
customizeFormList
:
this
.
inspectionNodeList
,
carTypeList
:
this
.
carTypeList
,
activeNodeId
:
this
.
activeNodeId
,
taskId
:
routeData
.
id
,
});
});
}
setDefaultData
(
list
:
any
[]
=
[])
{
const
typeToKeyMap
=
{
text_input
:
'valueText'
,
textarea_input
:
'valueText'
,
number_input
:
'valueText'
,
date_picker
:
'valueText'
,
dropdown
:
'valueKey'
,
radio_button_select
:
'valueKey'
};
const
defaultList
=
list
.
map
(
item
=>
{
const
inspectionValueList
=
item
?.
inspectionResultVO
?.
inspectionValueList
||
[];
let
value
=
null
;
if
(
inspectionValueList
.
length
>
0
)
{
const
key
=
typeToKeyMap
[
item
.
interactionType
];
if
(
key
)
value
=
inspectionValueList
[
0
][
key
]
||
''
;
}
if
(
item
.
nodeName
==
'品牌'
)
{
value
=
this
.
defaultData
.
carBrand
||
''
;
}
if
(
item
.
nodeName
==
'车系'
)
{
value
=
this
.
defaultData
.
carSeriesName
||
''
;
}
return
{
...
item
,
resultStatus
:
item
?.
inspectionResultVO
?.
resultStatus
==
3
?
true
:
false
,
value
};
});
return
defaultList
;
}
handleNodeList
(
item
:
any
)
{
this
.
activeNodeId
=
item
.
id
;
this
.
getInspectionNodeData
(
this
.
activeNodeId
);
...
...
@@ -122,10 +145,8 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
handleBack
()
{
this
.
$router
.
back
();
}
}
</
script
>
<
style
scoped
lang=
"less"
>
...
...
aus-front/admin/src/views/detection/order/components/CustomizeForm.vue
View file @
8af8118
This diff is collapsed.
Click to expand it.
aus-front/admin/src/views/detection/order/components/CustomizeFormButtonSelect.vue
View file @
8af8118
...
...
@@ -31,6 +31,16 @@ export default class CustomizeFormButtonSelect extends Vue {
}
}
mounted
()
{
this
.
initData
();
}
// 初始化数据
initData
()
{
this
.
pickerValue
=
this
.
item
?.
inspectionResultVO
?.
inspectionValueList
?.
filter
(
item
=>
item
.
valueKey
&&
item
.
interactionType
==
"button_select"
)?.
map
(
item
=>
item
.
valueKey
)
||
[];
this
.
setupdate
();
}
handleBut
(
item
:
{
value
:
string
})
{
if
(
item
.
value
)
{
this
.
item
.
resultStatus
=
false
;
...
...
aus-front/admin/src/views/detection/order/components/CustomizeFormButtonSelectUploadFile.vue
View file @
8af8118
...
...
@@ -46,6 +46,16 @@ export default class CustomizeFormButtonSelectUploadFile extends Vue {
}
}
mounted
()
{
this
.
initData
();
}
// 初始化数据
initData
()
{
this
.
pickerValue
=
this
.
item
?.
inspectionResultVO
?.
inspectionValueList
?.
filter
(
item
=>
item
.
valueText
&&
item
.
interactionType
==
"image_upload"
)?.
map
(
item
=>
item
.
valueText
)
||
[];
this
.
updateData
();
}
getValidationRules
()
{
return
JSON
.
parse
(
this
.
item
.
validationRules
||
"{}"
);
}
...
...
@@ -108,7 +118,7 @@ export default class CustomizeFormButtonSelectUploadFile extends Vue {
.uploadPage
{
float
:
left
;
width
:
calc
(
100%
-
24px
);
margin-left
:
12
px
;
margin-left
:
6
px
;
}
.uploadBox
{
...
...
@@ -124,7 +134,6 @@ export default class CustomizeFormButtonSelectUploadFile extends Vue {
cursor
:
pointer
;
}
.plusBox
{
float
:
left
;
margin-top
:
22px
;
...
...
aus-front/admin/src/views/detection/order/components/CustomizeFormUploadFile.vue
View file @
8af8118
...
...
@@ -59,6 +59,17 @@ export default class CustomizeFormUploadFile extends Vue {
videoVisible
:
boolean
=
false
;
videoUrl
:
string
=
""
;
mounted
()
{
this
.
initData
();
}
// 初始化数据
initData
()
{
this
.
pickerValue
=
this
.
item
?.
inspectionResultVO
?.
inspectionValueList
?.
filter
(
item
=>
item
.
valueText
)?.
map
(
item
=>
item
.
valueText
)
||
[];
this
.
updateData
();
}
getValidationRules
()
{
return
JSON
.
parse
(
this
.
item
.
validationRules
||
"{}"
);
}
...
...
@@ -129,7 +140,7 @@ export default class CustomizeFormUploadFile extends Vue {
.uploadPage
{
float
:
left
;
width
:
calc
(
100%
-
24px
);
margin-left
:
12
px
;
margin-left
:
6
px
;
}
.uploadBox
{
...
...
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