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 6c49a29c
authored
Apr 16, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 工单编辑功能开发
1 parent
a708d82e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 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 @
6c49a29
...
@@ -9,10 +9,11 @@
...
@@ -9,10 +9,11 @@
<div
v-for=
"item in nodeList"
@
click=
"handleNodeList(item)"
:key=
"item.id"
<div
v-for=
"item in nodeList"
@
click=
"handleNodeList(item)"
:key=
"item.id"
:class=
"
{ 'optionBut_active': item.id == activeNodeId }" class="optionBut">
:class=
"
{ 'optionBut_active': item.id == activeNodeId }" class="optionBut">
{{
item
.
nodeName
}}
{{
item
.
nodeName
}}
<CheckCircleFilled
v-if=
"item.completedFlag == '1'"
class=
"circleFilled"
/>
</div>
</div>
</div>
</div>
<div
class=
"customizeFormBox"
>
<div
class=
"customizeFormBox"
>
<CustomizeForm
ref=
"customizeFormRef"
/>
<CustomizeForm
ref=
"customizeFormRef"
@
submitSuccess=
"getTemplateData('0')"
/>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -23,12 +24,12 @@ import { PaginationComponent } from "@/components/PaginationComponent";
...
@@ -23,12 +24,12 @@ 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
{
DetectionController
}
from
"@/api/DetectionController"
;
import
{
DetectionController
}
from
"@/api/DetectionController"
;
import
{
CheckCircleFilled
}
from
'@ant-design/icons-vue'
@
Component
({
@
Component
({
components
:
{
InformationEdit
,
CustomizeForm
}
components
:
{
InformationEdit
,
CustomizeForm
,
CheckCircleFilled
}
})
})
export
default
class
DetectionOrderEdit
extends
PaginationComponent
<
Vehicle
>
{
export
default
class
DetectionOrderEdit
extends
PaginationComponent
<
Vehicle
>
{
...
@@ -44,7 +45,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -44,7 +45,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
created
():
void
{
created
():
void
{
this
.
getDetailData
();
this
.
getDetailData
();
this
.
getTemplateData
();
this
.
getTemplateData
(
'1'
);
this
.
getDefaultTemplate
();
this
.
getDefaultTemplate
();
}
}
...
@@ -56,12 +57,14 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -56,12 +57,14 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
});
});
}
}
getTemplateData
()
{
getTemplateData
(
status
)
{
const
routeData
=
this
.
$route
.
query
||
{};
const
routeData
=
this
.
$route
.
query
||
{};
DetectionController
.
inspectionTemplate
(
this
.
axios
,
{
id
:
routeData
.
id
}).
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
||
[]).
filter
(
item
=>
item
.
nodeName
);
this
.
activeNodeId
=
this
.
nodeList
[
0
].
id
||
null
;
if
(
status
==
'1'
)
{
this
.
getInspectionNodeData
(
this
.
activeNodeId
);
this
.
activeNodeId
=
this
.
nodeList
[
0
].
id
||
null
;
this
.
getInspectionNodeData
(
this
.
activeNodeId
);
}
});
});
}
}
...
@@ -76,7 +79,7 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -76,7 +79,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
||
[]).
map
(
item
=>
({
text
:
item
.
name
||
""
,
value
:
item
.
id
||
""
}));
this
.
carTypeList
=
(
data
.
carinfos
||
[]).
map
(
item
=>
({
text
:
item
.
name
||
""
,
value
:
String
(
item
.
id
)
||
""
}));
});
});
}
}
...
@@ -195,4 +198,10 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
...
@@ -195,4 +198,10 @@ export default class DetectionOrderEdit extends PaginationComponent<Vehicle> {
width
:
100%
;
width
:
100%
;
float
:
left
;
float
:
left
;
}
}
.circleFilled
{
font-size
:
12px
;
color
:
#1956fe
;
padding-left
:
2px
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
aus-front/admin/src/views/detection/order/components/CustomizeForm.vue
View file @
6c49a29
...
@@ -164,6 +164,7 @@ export default class CustomizeForm extends Vue {
...
@@ -164,6 +164,7 @@ export default class CustomizeForm extends Vue {
DetectionController
.
inspectRecordSave
(
this
.
axios
,
postData
).
then
(
response
=>
{
DetectionController
.
inspectRecordSave
(
this
.
axios
,
postData
).
then
(
response
=>
{
const
res
=
response
?.
data
||
{};
const
res
=
response
?.
data
||
{};
if
(
res
.
code
===
"200"
)
{
if
(
res
.
code
===
"200"
)
{
this
.
$emit
(
'submitSuccess'
,
res
);
message
.
success
(
res
.
message
||
'保存成功'
);
message
.
success
(
res
.
message
||
'保存成功'
);
}
else
{
}
else
{
message
.
error
(
res
.
message
||
'保存失败'
);
message
.
error
(
res
.
message
||
'保存失败'
);
...
@@ -278,6 +279,7 @@ export default class CustomizeForm extends Vue {
...
@@ -278,6 +279,7 @@ export default class CustomizeForm extends Vue {
});
});
return
returnData
;
return
returnData
;
}
}
returnSpan
(
item
:
{
interactionType
:
string
})
{
returnSpan
(
item
:
{
interactionType
:
string
})
{
return
item
.
interactionType
===
'image_upload_and_button_select'
?
24
:
8
;
return
item
.
interactionType
===
'image_upload_and_button_select'
?
24
:
8
;
}
}
...
...
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