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 0db72a9d
authored
Mar 20, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 检测师详情页面开发
1 parent
affff088
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
41 deletions
aus-front/admin/src/api/DetectionController.ts
aus-front/admin/src/views/detection/inspector/components/ticketList.vue
aus-front/admin/src/views/detection/order/DetectionOrderView.vue
aus-front/admin/src/views/detection/report/DetectionReportPage.vue
aus-front/admin/src/views/detection/report/components/bindDialog.vue
aus-front/admin/src/api/DetectionController.ts
View file @
0db72a9
...
@@ -46,6 +46,13 @@ export class DetectionController {
...
@@ -46,6 +46,13 @@ export class DetectionController {
return
axios
.
post
(
'inspect/report/export'
,
params
,
config
);
return
axios
.
post
(
'inspect/report/export'
,
params
,
config
);
}
}
static
inspectReportBind
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/report/bind'
,
params
);
}
static
inspectReportUnbind
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/report/unbind'
,
params
);
}
static
inspectOrderPage
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
inspectOrderPage
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/wo/page'
,
params
);
return
axios
.
post
(
'inspect/wo/page'
,
params
);
...
@@ -58,7 +65,7 @@ export class DetectionController {
...
@@ -58,7 +65,7 @@ export class DetectionController {
}
}
static
inspectOrderCountByStatus
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
inspectOrderCountByStatus
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
get
(
'inspect/wo/countByStatus'
,
params
);
return
axios
.
get
(
'inspect/wo/countByStatus'
+
(
params
.
inspectorId
?
'?inspectorId='
+
params
.
inspectorId
:
''
)
,
params
);
}
}
static
inspectOrderUpdate
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
inspectOrderUpdate
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
...
...
aus-front/admin/src/views/detection/inspector/components/ticketList.vue
View file @
0db72a9
...
@@ -86,12 +86,13 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
...
@@ -86,12 +86,13 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
this
.
getinspectOrderCountByStatus
();
this
.
getinspectOrderCountByStatus
();
this
.
init
(
this
.
axios
,
DetectionController
.
PAGE_INSPECTOR_ORDER
);
this
.
init
(
this
.
axios
,
DetectionController
.
PAGE_INSPECTOR_ORDER
);
this
.
buildQueryForm
({});
this
.
buildQueryForm
({});
this
.
pagination
.
addDefaultFilter
(
'inspectorId'
,
this
.
$route
.
query
.
id
,
Operator
.
eq
);
this
.
pagination
.
setDefaultSort
(
'createTime'
,
Order
.
desc
);
this
.
pagination
.
setDefaultSort
(
'createTime'
,
Order
.
desc
);
this
.
changeTab
(
this
.
tabKey
);
this
.
changeTab
(
this
.
tabKey
);
}
}
getinspectOrderCountByStatus
()
{
getinspectOrderCountByStatus
()
{
DetectionController
.
inspectOrderCountByStatus
(
this
.
axios
,
{}).
then
(
res
=>
{
DetectionController
.
inspectOrderCountByStatus
(
this
.
axios
,
{
inspectorId
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
this
.
ccountByStatusData
=
res
.
data
.
data
||
{};
this
.
ccountByStatusData
=
res
.
data
.
data
||
{};
});
});
}
}
...
...
aus-front/admin/src/views/detection/order/DetectionOrderView.vue
View file @
0db72a9
...
@@ -55,7 +55,7 @@ import orderDetails from "@/views/detection/order/components/orderDetails.vue";
...
@@ -55,7 +55,7 @@ import orderDetails from "@/views/detection/order/components/orderDetails.vue";
export
default
class
DetectionOrderView
extends
PaginationComponent
<
Vehicle
>
{
export
default
class
DetectionOrderView
extends
PaginationComponent
<
Vehicle
>
{
tabKey
=
"
DETAIL
"
;
tabKey
=
"
REPORT
"
;
routeData
:
any
=
{
routeData
:
any
=
{
id
:
''
,
id
:
''
,
...
...
aus-front/admin/src/views/detection/report/DetectionReportPage.vue
View file @
0db72a9
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</
template
>
</
template
>
</template>
</template>
</a-table>
</a-table>
<bind-dialog
ref=
"bindDialogRef"
@
emitOk=
"
pageL
oad"
/>
<bind-dialog
ref=
"bindDialogRef"
@
emitOk=
"
handlePageRel
oad"
/>
</a-card>
</a-card>
</template>
</template>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
@@ -80,6 +80,8 @@ import bindDialog from "@/views/detection/report/components/bindDialog.vue";
...
@@ -80,6 +80,8 @@ import bindDialog from "@/views/detection/report/components/bindDialog.vue";
@
Component
({
@
Component
({
components
:
{
VehicleStateTag
,
bindDialog
}
components
:
{
VehicleStateTag
,
bindDialog
}
})
})
export
default
class
DetectionReportPage
extends
PaginationComponent
<
Vehicle
>
{
export
default
class
DetectionReportPage
extends
PaginationComponent
<
Vehicle
>
{
exporting
=
false
;
exporting
=
false
;
...
...
aus-front/admin/src/views/detection/report/components/bindDialog.vue
View file @
0db72a9
...
@@ -2,30 +2,24 @@
...
@@ -2,30 +2,24 @@
<div>
<div>
<a-modal
v-model:open=
"dialogVisible"
:title=
"titleVisible"
@
ok=
"handleOk"
>
<a-modal
v-model:open=
"dialogVisible"
:title=
"titleVisible"
@
ok=
"handleOk"
>
<a-spin
:spinning=
"submitted"
style=
"margin-top: 16px;"
>
<a-spin
:spinning=
"submitted"
style=
"margin-top: 16px;"
>
<a-form
layout=
"vertical"
:model=
"postData"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
<div
class=
"disabledTip"
v-if=
"bindStatus == 1"
>
ref=
"formRef"
>
<div
class=
"outlinedBox"
>
<InfoCircleOutlined
style=
"font-size: 16px; color: #1956FE;"
/>
<div
class=
"disabledTip"
v-if=
"bindStatus == 1"
>
<div
class=
"outlinedBox"
>
<InfoCircleOutlined
style=
"font-size: 16px; color: #1956FE;"
/>
</div>
<div
class=
"disabledTxt"
>
<span>
确定将此报告绑定到车辆 (
</span>
<span
v-for=
"item in bindList"
:key=
"item.id"
>
车源号:
{{
item
?.
vehicle
?.
baseInfo
?.
sourceNo
||
'-'
}}
</span>
<span>
) 的前端拍卖页面吗?
</span>
</div>
</div>
</div>
<div
class=
"disabledTxt"
>
<div
class=
"disabledTip"
v-if=
"bindStatus == 2"
>
<span>
确定将此报告绑定到车辆 (
</span
>
<
div
class=
"outlinedBox
"
>
<
span
v-for=
"item in bindList"
:key=
"item.id
"
>
<InfoCircleOutlined
style=
"font-size: 16px; color: #FC8B0A;"
/>
车源号:
{{
item
?.
vehicle
?.
baseInfo
?.
sourceNo
||
'-'
}}
</
div
>
</
span
>
<
div
class=
"disabledTxt"
>
解绑后,该报告将不再于前端展示,是否确认解绑?
</div
>
<
span>
) 的前端拍卖页面吗?
</span
>
</div>
</div>
</div>
</a-form>
<div
class=
"disabledTip"
v-if=
"bindStatus == 2"
>
<div
class=
"outlinedBox"
>
<InfoCircleOutlined
style=
"font-size: 16px; color: #FC8B0A;"
/>
</div>
<div
class=
"disabledTxt"
>
解绑后,该报告将不再于前端展示,是否确认解绑?
</div>
</div>
</a-spin>
</a-spin>
</a-modal>
</a-modal>
</div>
</div>
...
@@ -62,21 +56,21 @@ export default class bindDialog extends EnhanceFormComponent<User> {
...
@@ -62,21 +56,21 @@ export default class bindDialog extends EnhanceFormComponent<User> {
}
}
handleOk
()
{
handleOk
()
{
this
.
$refs
.
formRef
.
validate
().
then
((
valid
)
=>
{
this
.
submitted
=
true
;
if
(
valid
)
{
const
formData
=
{
idList
:
this
.
bindList
.
map
(
item
=>
item
.
id
)
}
this
.
submitted
=
true
;
if
(
this
.
bindStatus
==
1
)
{
// const formData =
{
DetectionController
.
inspectReportBind
(
this
.
axios
,
formData
).
then
(
response
=>
{
// id: this.postData.id,
message
.
success
(
"操作成功"
);
// cancelType: this.postData.cancelType,
this
.
$emit
(
"emitOk"
);
// cancelReason: this.postData.cancelReason,
this
.
dialogVisible
=
false
;
// }
}).
finally
(()
=>
this
.
submitted
=
false
);
// DetectionController.inspectOrderCancel(this.axios, formData).then(response =>
{
}
else
if
(
this
.
bindStatus
==
2
)
{
// message.success("操作成功");
DetectionController
.
inspectReportUnbind
(
this
.
axios
,
formData
).
then
(
response
=>
{
// this.$emit("emitOk
");
message
.
success
(
"操作成功
"
);
// this.dialogVisible = false
;
this
.
$emit
(
"emitOk"
)
;
// }).finally(() => this.submitted = false)
;
this
.
dialogVisible
=
false
;
}
}
).
finally
(()
=>
this
.
submitted
=
false
);
}
);
}
}
}
}
}
...
...
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