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 d62e35a8
authored
Mar 19, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 检测订单功能开发
1 parent
16f53a55
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
758 additions
and
39 deletions
aus-front/admin/src/api/DetectionController.ts
aus-front/admin/src/router/DetectionRouter.ts
aus-front/admin/src/views/detection/inspector/DetectionInspectorPage.vue
aus-front/admin/src/views/detection/inspector/components/EnableDialog.vue
aus-front/admin/src/views/detection/inspector/components/InspectorAddForm.vue
aus-front/admin/src/views/detection/order/DetectionOrderPage.vue
aus-front/admin/src/views/detection/order/DetectionOrderView.vue
aus-front/admin/src/views/detection/order/components/OperationLog.vue
aus-front/admin/src/views/detection/order/components/OrderAddForm.vue
aus-front/admin/src/views/detection/order/components/cancelDialog.vue
aus-front/admin/src/views/detection/order/components/orderDetails.vue
aus-front/admin/src/views/detection/order/components/orderReport.vue
aus-front/admin/src/views/detection/order/components/selectVehicleForm.vue → aus-front/admin/src/views/detection/order/components/promptDialog.vue
aus-front/admin/src/api/DetectionController.ts
View file @
d62e35a
...
@@ -5,7 +5,7 @@ import { AxiosResponse, AxiosStatic } from 'axios';
...
@@ -5,7 +5,7 @@ import { AxiosResponse, AxiosStatic } from 'axios';
*/
*/
export
class
DetectionController
{
export
class
DetectionController
{
static
pagePreferenc
e
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
inspectPag
e
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/page'
,
params
);
return
axios
.
post
(
'inspect/page'
,
params
);
}
}
...
@@ -28,7 +28,7 @@ export class DetectionController {
...
@@ -28,7 +28,7 @@ export class DetectionController {
}
}
static
inspectUpdate
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
inspectUpdate
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/update
'
,
params
);
return
axios
.
post
(
'inspect/update
/'
+
params
.
id
,
params
);
}
}
static
inspectStatus
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
inspectStatus
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
...
@@ -39,4 +39,35 @@ export class DetectionController {
...
@@ -39,4 +39,35 @@ export class DetectionController {
return
axios
.
post
(
'inspect/export'
,
params
,
config
);
return
axios
.
post
(
'inspect/export'
,
params
,
config
);
}
}
static
inspectOrderPage
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/wo/page'
,
params
);
}
static
PAGE_INSPECTOR_ORDER
=
'inspect/wo/page'
;
static
inspectOrderAdd
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/wo/add'
,
params
);
}
static
inspectOrderCountByStatus
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
get
(
'inspect/wo/countByStatus'
,
params
);
}
static
inspectOrderUpdate
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/wo/update'
,
params
);
}
static
inspectOrderExport
(
axios
:
AxiosStatic
,
params
:
any
,
config
?:
any
):
Promise
<
AxiosResponse
<
void
>>
{
return
axios
.
post
(
'/inspect/wo/export'
,
params
,
config
);
}
static
inspectOrderCancel
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'/inspect/wo/cancel'
,
params
);
}
static
inspectOrderDetail
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
get
(
'/inspect/wo/detail/'
+
params
.
id
,
params
);
}
}
}
aus-front/admin/src/router/DetectionRouter.ts
View file @
d62e35a
...
@@ -9,10 +9,10 @@ export const DetectionRouter: Array<RouteRecordRaw> = [
...
@@ -9,10 +9,10 @@ export const DetectionRouter: Array<RouteRecordRaw> = [
}
}
},
},
{
{
path
:
'/detection/
detectionOrderV
iew'
,
path
:
'/detection/
order/v
iew'
,
component
:
()
=>
import
(
'@/views/detection/order/DetectionOrderView.vue'
),
component
:
()
=>
import
(
'@/views/detection/order/DetectionOrderView.vue'
),
meta
:
{
meta
:
{
breadcrumbs
:
[{
name
:
'检测管理'
},
{
name
:
'检测订单管理'
,
path
:
'/detection/
detectionO
rder'
},
{
name
:
'检测订单详情'
}]
breadcrumbs
:
[{
name
:
'检测管理'
},
{
name
:
'检测订单管理'
,
path
:
'/detection/
o
rder'
},
{
name
:
'检测订单详情'
}]
}
}
},
},
{
{
...
@@ -23,10 +23,10 @@ export const DetectionRouter: Array<RouteRecordRaw> = [
...
@@ -23,10 +23,10 @@ export const DetectionRouter: Array<RouteRecordRaw> = [
}
}
},
},
{
{
path
:
'/detection/
detectionReportV
iew'
,
path
:
'/detection/
report/v
iew'
,
component
:
()
=>
import
(
'@/views/detection/report/DetectionReportView.vue'
),
component
:
()
=>
import
(
'@/views/detection/report/DetectionReportView.vue'
),
meta
:
{
meta
:
{
breadcrumbs
:
[{
name
:
'检测管理'
},
{
name
:
'检测报告管理'
,
path
:
'/detection/
detectionR
eport'
},
{
name
:
'检测报告详情'
}]
breadcrumbs
:
[{
name
:
'检测管理'
},
{
name
:
'检测报告管理'
,
path
:
'/detection/
r
eport'
},
{
name
:
'检测报告详情'
}]
}
}
},
},
{
{
...
@@ -37,7 +37,7 @@ export const DetectionRouter: Array<RouteRecordRaw> = [
...
@@ -37,7 +37,7 @@ export const DetectionRouter: Array<RouteRecordRaw> = [
}
}
},
},
{
{
path
:
'/detection/
detectionInspectorV
iew'
,
path
:
'/detection/
inspector/v
iew'
,
component
:
()
=>
import
(
'@/views/detection/inspector/DetectionInspectorView.vue'
),
component
:
()
=>
import
(
'@/views/detection/inspector/DetectionInspectorView.vue'
),
meta
:
{
meta
:
{
breadcrumbs
:
[{
name
:
'检测管理'
},
{
name
:
'检测师管理'
,
path
:
'/detection/detectionInspector'
},
{
name
:
'检测师详情'
}]
breadcrumbs
:
[{
name
:
'检测管理'
},
{
name
:
'检测师管理'
,
path
:
'/detection/detectionInspector'
},
{
name
:
'检测师详情'
}]
...
...
aus-front/admin/src/views/detection/inspector/DetectionInspectorPage.vue
View file @
d62e35a
...
@@ -57,13 +57,22 @@
...
@@ -57,13 +57,22 @@
</div>
</div>
</div>
</div>
<a-table
:columns=
"columns"
:data-source=
"
pagination.conten
t"
:loading=
"loading"
:bordered=
"false"
<a-table
:columns=
"columns"
:data-source=
"
contentLis
t"
:loading=
"loading"
:bordered=
"false"
@
change=
"pageRefresh"
@
resizeColumn=
"this.$filters.tableResizeColumn"
size=
"small"
@
change=
"pageRefresh"
@
resizeColumn=
"this.$filters.tableResizeColumn"
size=
"small"
:pagination=
"pageState"
:row-key=
"record => record.id"
:scroll=
"{ y: 'calc(100vh - 288px)' }"
>
:pagination=
"pageState"
:row-key=
"record => record.id"
:scroll=
"{ y: 'calc(100vh - 288px)' }"
>
<
template
#
bodyCell=
"{ column, record }"
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'vehicleState'"
>
<template
v-if=
"column.key === 'status'"
>
111
<a-switch
@
change=
"handleEnableDisable(record)"
v-model:checked=
"record.status"
/>
{{
record
.
status
?
'启用'
:
'禁用'
}}
</
template
>
<
template
v-if=
"column.key === 'action'"
>
<router-link
:to=
"
{ path: '/detection/inspector/view', query: { id: record.id, action: 'VIEW' } }">
<a-button
type=
"link"
size=
"small"
>
详情
</a-button>
</router-link>
<a-button
type=
"link"
@
click=
"handleAdd(record)"
size=
"small"
>
编辑
</a-button>
</
template
>
</
template
>
</template>
</template>
</a-table>
</a-table>
...
@@ -142,15 +151,15 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
...
@@ -142,15 +151,15 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
return
this
.
pagination
;
return
this
.
pagination
;
}
}
/**
/**
* 初始化配置
* 初始化配置
*/
*/
created
():
void
{
created
():
void
{
this
.
init
(
this
.
axios
,
DetectionController
.
PAGE_INSPECTOR
);
this
.
init
(
this
.
axios
,
DetectionController
.
PAGE_INSPECTOR
);
this
.
buildQueryForm
({
this
.
buildQueryForm
({
sourceNo
:
[
null
,
{
label
:
'关键字'
,
field
:
'key'
,
placeholder
:
'搜索姓名、手机号'
,
operator
:
Operator
.
like
}],
sourceNo
:
[
null
,
{
label
:
'关键字'
,
field
:
'key
word
'
,
placeholder
:
'搜索姓名、手机号'
,
operator
:
Operator
.
like
}],
cityCode
:
[
null
,
{
region
:
[
null
,
{
name
:
'cityCodeName'
,
label
:
'所在城市'
,
field
:
'
cityCode
'
,
type
:
'slot'
,
placeholder
:
'请选择省/市'
,
operator
:
Operator
.
eq
name
:
'cityCodeName'
,
label
:
'所在城市'
,
field
:
'
region
'
,
type
:
'slot'
,
placeholder
:
'请选择省/市'
,
operator
:
Operator
.
eq
}],
}],
status
:
[
null
,
{
status
:
[
null
,
{
label
:
'账号状态'
,
field
:
'status'
,
type
:
'select'
,
allowClear
:
true
,
optionItems
:
this
.
reviewStatusList
,
operator
:
Operator
.
eq
label
:
'账号状态'
,
field
:
'status'
,
type
:
'select'
,
allowClear
:
true
,
optionItems
:
this
.
reviewStatusList
,
operator
:
Operator
.
eq
...
@@ -161,6 +170,10 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
...
@@ -161,6 +170,10 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
this
.
getInspectSummary
();
this
.
getInspectSummary
();
}
}
get
contentList
()
{
return
this
.
pagination
.
content
.
map
((
item
)
=>
({
...
item
,
status
:
item
.
status
==
1
?
true
:
false
}));
}
//获取统计数据
//获取统计数据
getInspectSummary
()
{
getInspectSummary
()
{
DetectionController
.
inspectSummary
(
this
.
axios
,
{}).
then
(
response
=>
{
DetectionController
.
inspectSummary
(
this
.
axios
,
{}).
then
(
response
=>
{
...
@@ -181,7 +194,7 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
...
@@ -181,7 +194,7 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
const
cityObj
=
e
[
e
.
length
-
1
];
const
cityObj
=
e
[
e
.
length
-
1
];
code
=
cityObj
.
value
||
''
;
code
=
cityObj
.
value
||
''
;
}
}
this
.
pagination
.
queryForm
.
cityCode
=
code
;
this
.
pagination
.
queryForm
.
region
=
code
;
}
}
//重置查询条件
//重置查询条件
...
@@ -196,10 +209,10 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
...
@@ -196,10 +209,10 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
//启用/禁用检测师
//启用/禁用检测师
handleEnableDisable
(
record
)
{
handleEnableDisable
(
record
)
{
this
.
$refs
.
enableDialogRef
.
init
({
id
:
'3'
,
status
:
0
,
});
this
.
$refs
.
enableDialogRef
.
init
({
id
:
record
.
id
,
status
:
record
.
status
?
0
:
1
});
}
}
//
//
导出检测师列表
downloadExcel
():
void
{
downloadExcel
():
void
{
this
.
exporting
=
true
;
this
.
exporting
=
true
;
let
paramsData
=
{
let
paramsData
=
{
...
...
aus-front/admin/src/views/detection/inspector/components/EnableDialog.vue
View file @
d62e35a
<
template
>
<
template
>
<div>
<div>
<a-modal
v-model:open=
"dialogVisible"
:title=
"titleVisible"
@
ok=
"handleOk"
>
<a-modal
v-model:open=
"dialogVisible"
:title=
"titleVisible"
@
ok=
"handleOk"
@
cancel=
"handleCancel"
>
<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"
<a-form
layout=
"vertical"
:model=
"postData"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
ref=
"formRef"
>
...
@@ -52,6 +52,11 @@ export default class EnableDialog extends EnhanceFormComponent<User> {
...
@@ -52,6 +52,11 @@ export default class EnableDialog extends EnhanceFormComponent<User> {
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
}
}
handleCancel
()
{
this
.
dialogVisible
=
false
;
this
.
$emit
(
"emitOk"
);
}
handleOk
()
{
handleOk
()
{
this
.
$refs
.
formRef
.
validate
().
then
((
valid
)
=>
{
this
.
$refs
.
formRef
.
validate
().
then
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
...
aus-front/admin/src/views/detection/inspector/components/InspectorAddForm.vue
View file @
d62e35a
...
@@ -69,17 +69,16 @@ export default class InspectorAddForm extends EnhanceFormComponent<User> {
...
@@ -69,17 +69,16 @@ export default class InspectorAddForm extends EnhanceFormComponent<User> {
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
this
.
titleVisible
=
data
.
id
?
"编辑检测师"
:
"新增检测师"
;
this
.
titleVisible
=
data
.
id
?
"编辑检测师"
:
"新增检测师"
;
this
.
formDisabled
=
data
.
id
?
true
:
false
;
this
.
formDisabled
=
data
.
id
?
true
:
false
;
if
(
data
.
id
)
{
this
.
postData
.
id
=
data
.
id
||
''
;
this
.
postData
.
id
=
data
.
id
||
''
;
this
.
postData
.
name
=
data
.
name
||
''
;
this
.
postData
.
name
=
data
.
name
||
''
;
this
.
postData
.
phone
=
data
.
phone
||
''
;
this
.
postData
.
phone
=
data
.
phone
||
''
;
this
.
postData
.
region
=
data
.
region
||
''
;
this
.
postData
.
region
=
data
.
region
||
''
;
this
.
postData
.
regionName
=
data
.
regionName
||
''
;
this
.
postData
.
regionName
=
data
.
regionName
||
''
;
this
.
postData
.
status
=
data
.
id
?
data
.
status
:
true
;
this
.
postData
.
status
=
data
.
status
===
1
;
}
if
(
data
.
region
)
{
if
(
data
.
region
)
{
const
cityCode
=
data
.
region
.
substring
(
0
,
2
);
const
cityCode
=
data
.
region
.
substring
(
0
,
2
);
this
.
postData
.
registrationCity
=
[
cityCode
+
'0000'
,
data
.
cityCode
];
this
.
postData
.
registrationCity
=
[
cityCode
+
'0000'
,
data
.
region
];
}
else
{
}
else
{
this
.
postData
.
registrationCity
=
[]
this
.
postData
.
registrationCity
=
[]
}
}
...
...
aus-front/admin/src/views/detection/order/DetectionOrderPage.vue
View file @
d62e35a
This diff is collapsed.
Click to expand it.
aus-front/admin/src/views/detection/order/DetectionOrderView.vue
View file @
d62e35a
<
template
>
<div>
<div
class=
"titleBox"
>
<a-button
style=
"float: right;"
@
click=
"handleBack()"
>
返回列表
</a-button>
</div>
<div
style=
"width: 100%;float: left;"
>
<a-card
class=
"tabs-card"
:bordered=
"false"
:tab-list=
"tabs"
:active-tab-key=
"tabKey"
@
tabChange=
"key => changeTab(key)"
>
<!-- 检测报告 -->
<div
v-if=
"tabKey === 'REPORT'"
style=
"width: 100%;float: left;"
>
<orderReport
:pageData=
"pageData.inspectionWORespVO ||
{}" />
</div>
<!-- 工单详情 -->
<div
v-if=
"tabKey === 'DETAIL'"
style=
"width: 100%;float: left;"
>
<orderDetails
ref=
"orderDetailsRef"
:pageData=
"pageData.inspectionWORespVO ||
{}"
:inspectionReportResp="pageData.inspectionReportRespVO || {}" />
</div>
<!-- 操作日志 -->
<div
style=
"width: 100%;float: left;margin-top: 16px;"
>
<a-descriptions
:column=
"1"
size=
"small"
layout=
"vertical"
>
<template
#
title
>
<title-tip-icon></title-tip-icon>
操作日志
<div
class=
"title-line"
></div>
</
template
>
<a-descriptions-item
label=
""
>
<OperationLog
ref=
"operationLogRef"
:operationLogData=
"pageData"
/>
</a-descriptions-item>
</a-descriptions>
</div>
</a-card>
</div>
</div>
</template>
<
script
lang=
"ts"
>
import
{
Component
}
from
'vue-facing-decorator'
;
import
{
PaginationComponent
}
from
"@/components/PaginationComponent"
;
import
{
Vehicle
}
from
"lib/src/entity/vehicle/entity/Vehicle"
;
import
{
DetectionController
}
from
"@/api/DetectionController"
;
import
TitleDivider
from
"@/components/TitleDivider.vue"
;
import
TitleTipIcon
from
"@/components/icons/TitleTipIcon.vue"
;
import
OperationLog
from
"@/views/detection/order/components/OperationLog.vue"
;
import
orderReport
from
"@/views/detection/order/components/orderReport.vue"
;
import
orderDetails
from
"@/views/detection/order/components/orderDetails.vue"
;
@
Component
({
components
:
{
TitleDivider
,
TitleTipIcon
,
OperationLog
,
orderReport
,
orderDetails
}
})
export
default
class
DetectionOrderView
extends
PaginationComponent
<
Vehicle
>
{
tabKey
=
"DETAIL"
;
routeData
:
any
=
{
id
:
''
,
action
:
''
};
pageData
:
any
=
{};
get
tabs
()
{
let
tabs
=
[
{
key
:
"REPORT"
,
tab
:
"检测报告"
},
{
key
:
"DETAIL"
,
tab
:
"工单详情"
},
];
return
tabs
;
}
changeTab
(
key
:
string
)
{
this
.
tabKey
=
key
;
}
created
():
void
{
this
.
routeData
=
this
.
$route
.
query
;
this
.
getDetailData
();
}
getDetailData
()
{
DetectionController
.
inspectOrderDetail
(
this
.
axios
,
{
id
:
this
.
routeData
.
id
}).
then
(
response
=>
{
this
.
pageData
=
response
.
data
.
data
||
{};
});
}
handleBack
()
{
this
.
$router
.
back
();
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.titleBox
{
width
:
100%
;
height
:
32px
;
float
:
left
;
}
.title-line
{
width
:
100%
;
height
:
1px
;
background-color
:
#F2F4F7
;
margin-top
:
10px
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
aus-front/admin/src/views/detection/order/components/OperationLog.vue
0 → 100644
View file @
d62e35a
<
template
>
<div
class=
"logBox"
>
<div
v-for=
"(item, index) in logList"
:key=
"index"
class=
"log-list"
>
<div
class=
"progressBox"
>
<div
class=
"progressBox-point"
:class=
"
{ 'bg-1956fe': index > 0 }">
</div>
<div
v-if=
"alllist.length !== index + 1"
class=
"progressBox-line"
></div>
</div>
<div
class=
"log-title"
>
<div
v-if=
"item.description"
class=
"logBox-content"
>
{{
item
.
description
}}
</div>
<div
class=
"logBox-time"
>
<div
class=
"logBox-point"
v-if=
"item.updateNameCnFirst"
>
{{
item
.
updateNameCnFirst
}}
</div>
<span
class=
"p-l-4"
>
{{
item
.
operatorName
}}
</span>
<span
class=
"p-l-8"
>
{{
item
.
operationTime
}}
</span>
</div>
</div>
</div>
<div
v-if=
"!isAllData"
@
click=
"handleMore()"
class=
"moreBox"
>
查看更多
<DoubleLeftOutlined
color=
"#666666"
font-size=
"16px;"
style=
"transform: rotate(270deg);"
/>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Watch
}
from
"vue-facing-decorator"
;
import
{
DoubleLeftOutlined
}
from
'@ant-design/icons-vue'
;
@
Component
({
components
:
{
DoubleLeftOutlined
}
})
export
default
class
OperationLog
extends
Vue
{
@
Prop
({
type
:
Object
,
required
:
true
})
operationLogData
:
any
;
logList
=
[];
isAllData
=
false
;
alllist
=
[];
@
Watch
(
'operationLogData'
,
{
deep
:
true
,
immediate
:
true
})
watchOperationLogData
(
newValue
:
any
,
oldValue
:
any
):
void
{
const
list
=
(
newValue
.
logList
||
[]).
map
((
item
:
any
)
=>
{
return
{
...
item
}
});
if
(
list
.
length
>
5
)
{
this
.
isAllData
=
false
;
this
.
alllist
=
list
;
this
.
logList
=
list
.
slice
(
0
,
5
);
}
else
{
this
.
isAllData
=
true
;
this
.
logList
=
list
;
}
}
handleMore
()
{
this
.
isAllData
=
true
;
this
.
logList
=
this
.
alllist
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.logBox
{
width
:
100%
;
height
:
auto
;
float
:
left
;
margin-top
:
16px
;
}
.log-list
{
width
:
-webkit-calc
(
100%
-
32px
);
width
:
-moz-calc
(
100%
-
32px
);
width
:
calc
(
100%
-
32px
);
float
:
left
;
margin-bottom
:
16px
;
margin-left
:
32px
;
}
.progressBox
{
width
:
24px
;
float
:
left
;
}
.progressBox-point
{
width
:
8px
;
height
:
8px
;
border
:
2px
solid
#1956fe
;
border-radius
:
8px
;
}
.bg-1956fe
{
background
:
#1956fe
;
}
.progressBox-line
{
width
:
2px
;
height
:
40px
;
background
:
#1956fe
;
margin-top
:
3px
;
margin-left
:
2.5px
;
}
.log-title
{
width
:
-webkit-calc
(
100%
-
24px
);
width
:
-moz-calc
(
100%
-
24px
);
width
:
calc
(
100%
-
24px
);
float
:
left
;
}
.logBox-content
{
width
:
100%
;
height
:
20px
;
line-height
:
20px
;
float
:
left
;
color
:
#2F3133
;
font-size
:
14px
;
font-weight
:
400
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.logBox-content
span
{
color
:
#2f3133
;
}
.logBox-time
{
width
:
100%
;
height
:
20px
;
line-height
:
20px
;
float
:
left
;
color
:
#777c85
;
font-size
:
12px
;
font-weight
:
400
;
margin-top
:
6px
;
}
.logBox-point
{
width
:
14px
;
height
:
14px
;
line-height
:
14px
;
background
:
#e6efff
;
text-align
:
center
;
float
:
left
;
margin
:
3px
0
;
color
:
#1956fe
;
font-size
:
8px
;
font-weight
:
700
;
border-radius
:
8px
;
}
.moreBox
{
width
:
-webkit-calc
(
100%
-
32px
);
width
:
-moz-calc
(
100%
-
32px
);
width
:
calc
(
100%
-
32px
);
height
:
20px
;
float
:
left
;
color
:
#666666
;
font-size
:
14px
;
font-weight
:
400
;
line-height
:
20px
;
margin-top
:
8px
;
margin-bottom
:
22px
;
margin-left
:
32px
;
cursor
:
pointer
;
}
.p-l-4
{
padding-left
:
4px
;
}
.p-l-8
{
padding-left
:
8px
;
}
</
style
>
aus-front/admin/src/views/detection/order/components/OrderAddForm.vue
View file @
d62e35a
This diff is collapsed.
Click to expand it.
aus-front/admin/src/views/detection/order/components/cancelDialog.vue
0 → 100644
View file @
d62e35a
<
template
>
<div>
<a-modal
v-model:open=
"dialogVisible"
title=
"取消工单"
@
ok=
"handleOk"
>
<a-spin
:spinning=
"submitted"
style=
"margin-top: 16px;"
>
<a-form
layout=
"vertical"
:model=
"postData"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
<div
class=
"disabledTip"
>
<div
class=
"outlinedBox"
>
<InfoCircleOutlined
style=
"font-size: 15px; color: #FC8B0A;"
/>
</div>
<div
class=
"disabledTxt"
>
是否确认取消工单「
{{
pageData
.
woId
||
'-'
}}
」?
<br>
取消后将通知检测师「
{{
pageData
?.
inspector
?.
name
||
'-'
}}
」,该操作不可撤销。
</div>
</div>
<a-form-item
name=
"cancelType"
label=
"取消原因"
:rules=
"[
{ required: true, message: '请选择取消原因' }]">
<a-select
ref=
"select"
v-model:value=
"postData.cancelType"
placeholder=
"请选择取消原因"
style=
"width: 456px;"
>
<a-select-option
value=
"车主取消"
>
车主取消
</a-select-option>
<a-select-option
value=
"车辆已售"
>
车辆已售
</a-select-option>
<a-select-option
value=
"重复派单"
>
重复派单
</a-select-option>
<a-select-option
value=
"信息错误"
>
信息错误
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
name=
"cancelReason"
label=
"备注说明"
>
<a-textarea
v-model:value=
"postData.cancelReason"
show-count
:maxlength=
"500"
style=
"width: 456px;"
/>
</a-form-item>
</a-form>
</a-spin>
</a-modal>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
}
from
'vue-facing-decorator'
;
import
{
EnhanceFormComponent
}
from
"@/core/form/EnhanceFormComponent"
;
import
{
DetectionController
}
from
"@/api/DetectionController"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
User
}
from
"lib/src/entity/security/entity/User"
;
import
{
InfoCircleOutlined
}
from
"@ant-design/icons-vue"
;
@
Component
({
components
:
{
InfoCircleOutlined
}
})
export
default
class
cancelDialog
extends
EnhanceFormComponent
<
User
>
{
pageData
=
{};
dialogVisible
=
false
;
postData
=
{
id
:
''
,
cancelType
:
null
,
cancelReason
:
''
}
init
(
data
):
void
{
this
.
pageData
=
data
;
this
.
postData
.
id
=
data
.
id
;
this
.
postData
.
cancelType
=
null
;
this
.
postData
.
cancelReason
=
''
;
this
.
dialogVisible
=
true
;
}
handleOk
()
{
this
.
$refs
.
formRef
.
validate
().
then
((
valid
)
=>
{
if
(
valid
)
{
this
.
submitted
=
true
;
const
formData
=
{
id
:
this
.
postData
.
id
,
cancelType
:
this
.
postData
.
cancelType
,
cancelReason
:
this
.
postData
.
cancelReason
,
}
DetectionController
.
inspectOrderCancel
(
this
.
axios
,
formData
).
then
(
response
=>
{
message
.
success
(
"操作成功"
);
this
.
$emit
(
"emitOk"
);
this
.
dialogVisible
=
false
;
}).
finally
(()
=>
this
.
submitted
=
false
);
}
});
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.tipBox
{
width
:
100%
;
height
:
22px
;
line-height
:
22px
;
color
:
#2f3133
;
font-size
:
14px
;
font-weight
:
400
;
font-family
:
"HarmonyOSSansSC"
;
}
.disabledTip
{
width
:
100%
;
height
:
68px
;
border-radius
:
4px
;
background
:
#fc8b0a1
a
;
display
:
flex
;
margin-bottom
:
20px
;
margin-top
:
24px
;
}
.outlinedBox
{
float
:
left
;
margin-left
:
16px
;
margin-top
:
16px
;
}
.disabledTxt
{
padding-top
:
14px
;
padding-bottom
:
14px
;
padding-right
:
16px
;
padding-left
:
8px
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
aus-front/admin/src/views/detection/order/components/orderDetails.vue
0 → 100644
View file @
d62e35a
<
template
>
<div>
<div
class=
"pageBox_title"
>
工单详情
<span>
工单单号:
{{
pageData
.
woId
||
'-'
}}
</span>
</div>
<div
class=
"pageBox"
>
<div
style=
"width: 100%;float: left;"
>
<a-card
class=
"tabs-card"
:bordered=
"false"
>
<a-descriptions
:column=
"2"
size=
"small"
layout=
"vertical"
>
<template
#
title
>
<title-tip-icon></title-tip-icon>
工单信息
<div
class=
"title-line"
></div>
</
template
>
<a-descriptions-item
label=
"工单单号"
>
{{ pageData.woId || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"检测单状态"
>
<a-tag
v-if=
"pageData.status == 1"
color=
"#FFF3E5"
:style=
"{ color: '#F0A700' }"
:bordered=
"false"
>
待检测
</a-tag>
<a-tag
v-if=
"pageData.status == 2"
color=
"#E7F2FE"
:style=
"{ color: '#288BFA' }"
:bordered=
"false"
>
检测中
</a-tag>
<a-tag
v-if=
"pageData.status == 3"
color=
"#E8F8F2"
:style=
"{ color: '#00AD74' }"
:bordered=
"false"
>
已完成
</a-tag>
<a-tag
v-if=
"pageData.status == 4"
color=
"#F0F2F5"
:style=
"{ color: '#777C85' }"
:bordered=
"false"
>
已取消
</a-tag>
</a-descriptions-item>
<a-descriptions-item
label=
"审核状态"
>
<a-tag
v-if=
"pageData.auditStatus == 1"
color=
"#FFF3E5"
:style=
"{ color: '#F0A700' }"
:bordered=
"false"
>
待审核
</a-tag>
<a-tag
v-else-if=
"pageData.auditStatus == 2"
color=
"#E7F2FE"
:style=
"{ color: '#288BFA' }"
:bordered=
"false"
>
审核中
</a-tag>
<a-tag
v-else-if=
"pageData.auditStatus == 3"
color=
"#E8F8F2"
:style=
"{ color: '#00AD74' }"
:bordered=
"false"
>
审批通过
</a-tag>
<a-tag
v-else-if=
"pageData.auditStatus == 4"
color=
"#FFEDED"
:style=
"{ color: '#EB2F2F' }"
:bordered=
"false"
>
审批驳回
</a-tag>
</a-descriptions-item>
<a-descriptions-item
label=
"创建时间"
>
{{ pageData.createTime || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"完成检测时间"
>
{{ pageData.inspectionCompletedTime || '-'
}}
</a-descriptions-item>
</a-descriptions>
<a-descriptions
:column=
"2"
size=
"small"
layout=
"vertical"
>
<
template
#
title
>
<title-tip-icon></title-tip-icon>
车辆详细信息
<div
class=
"title-line"
></div>
</
template
>
<a-descriptions-item
label=
"车型名称"
>
{{ pageData?.vehicle?.baseInfo?.carTypeName || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"车源号"
>
{{ pageData?.vehicle?.baseInfo?.sourceNo || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"VIN码"
>
{{ pageData?.vehicle?.baseInfo?.vin || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"车牌号"
>
{{ pageData?.vehicle?.baseInfo?.licensePlate || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"所属门店"
>
{{ pageData?.vehicle?.venue?.venueName || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"车辆状态"
>
<vehicle-state-tag
:vehicle-state=
"pageData?.vehicle?.vehicleState"
></vehicle-state-tag>
</a-descriptions-item>
<a-descriptions-item
label=
"车辆所在地"
>
{{ pageData?.vehicle?.custodianInfo?.handoverAddress || '-' }}
</a-descriptions-item>
</a-descriptions>
<a-descriptions
:column=
"2"
size=
"small"
layout=
"vertical"
>
<
template
#
title
>
<title-tip-icon></title-tip-icon>
车辆保管人信息
<div
class=
"title-line"
></div>
</
template
>
<a-descriptions-item
label=
"保管人姓名"
>
{{ pageData?.vehicle?.custodianInfo?.custodianName || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"保管人电话"
>
{{ pageData?.vehicle?.custodianInfo?.custodianPhone || '-' }}
</a-descriptions-item>
</a-descriptions>
<a-descriptions
:column=
"2"
size=
"small"
layout=
"vertical"
>
<
template
#
title
>
<title-tip-icon></title-tip-icon>
检测师信息
<div
class=
"title-line"
></div>
</
template
>
<a-descriptions-item
label=
"检测师姓名"
>
{{ pageData?.inspector?.name || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"检测师电话"
>
{{ pageData?.inspector?.phone || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"检测地址"
>
{{ pageData?.inspector?.regionName || '-' }}
</a-descriptions-item>
</a-descriptions>
<a-descriptions
:column=
"2"
size=
"small"
layout=
"vertical"
>
<
template
#
title
>
<title-tip-icon></title-tip-icon>
报告信息
<div
class=
"title-line"
></div>
</
template
>
<a-descriptions-item
label=
"报告编号"
>
{{ inspectionReportResp?.reportNo || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"生成时间"
>
{{ inspectionReportResp?.createTime || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"更新时间"
>
{{ inspectionReportResp?.updateTime || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"关联工单"
>
{{ inspectionReportResp?.woId || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"绑定状态"
>
<a-tag
v-if=
"inspectionReportResp.bindStatus == 1"
color=
"#E8F8F2"
:style=
"{ color: '#00AD74' }"
:bordered=
"false"
>
已绑定
</a-tag>
<a-tag
v-if=
"inspectionReportResp.bindStatus == 2"
color=
"#F0F2F5"
:style=
"{ color: '#777C85' }"
:bordered=
"false"
>
未绑定
</a-tag>
</a-descriptions-item>
</a-descriptions>
<a-descriptions
:column=
"1"
size=
"small"
layout=
"vertical"
>
<
template
#
title
>
<title-tip-icon></title-tip-icon>
检测报告H5链接
<div
class=
"title-line"
></div>
</
template
>
<a-descriptions-item
label=
""
>
<div
class=
"linkBox"
>
{{ inspectionReportResp?.h5Url || '-' }}
</div>
</a-descriptions-item>
</a-descriptions>
</a-card>
</div>
</div>
</div>
</template>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Watch
}
from
"vue-facing-decorator"
;
import
{
PaginationComponent
}
from
"@/components/PaginationComponent"
;
import
{
Vehicle
}
from
"lib/src/entity/vehicle/entity/Vehicle"
;
import
TitleDivider
from
"@/components/TitleDivider.vue"
;
import
TitleTipIcon
from
"@/components/icons/TitleTipIcon.vue"
;
import
VehicleStateTag
from
"@/views/vehicle/inventory/VehicleStateTag.vue"
;
@
Component
({
components
:
{
TitleDivider
,
TitleTipIcon
,
VehicleStateTag
}
})
export
default
class
DetectionOrderView
extends
PaginationComponent
<
Vehicle
>
{
@
Prop
({
type
:
Object
,
required
:
true
})
pageData
:
any
;
@
Prop
({
type
:
Object
,
required
:
true
})
inspectionReportResp
:
any
;
}
</
script
>
<
style
scoped
lang=
"less"
>
.pageBox
{
width
:
100%
;
float
:
left
;
border-radius
:
8px
;
border
:
1px
solid
#e1e3e6
;
padding
:
0
16px
;
}
.pageBox_title
{
width
:
100%
;
height
:
24px
;
float
:
left
;
color
:
#202020
;
font-size
:
16px
;
font-weight
:
700
;
line-height
:
24px
;
margin-top
:
16px
;
margin-bottom
:
16px
;
}
.pageBox_title
span
{
padding-left
:
10px
;
color
:
#9ca0a8
;
font-size
:
12px
;
font-weight
:
400
;
}
.titleBox
{
width
:
100%
;
height
:
32px
;
float
:
left
;
}
.title-line
{
width
:
100%
;
height
:
1px
;
background-color
:
#F2F4F7
;
margin-top
:
10px
;
}
.linkBox
{
width
:
100%
;
height
:
40px
;
line-height
:
40px
;
padding-left
:
12px
;
border-radius
:
6px
;
background
:
#f5f7fa
;
color
:
#2f3133
;
font-size
:
14px
;
font-weight
:
400
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
aus-front/admin/src/views/detection/order/components/orderReport.vue
0 → 100644
View file @
d62e35a
<
template
>
<div>
<div
class=
"pageBox_title"
>
二手车检测报告
<span>
报告编号:GL202603120015
</span>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
}
from
"vue-facing-decorator"
;
import
{
PaginationComponent
}
from
"@/components/PaginationComponent"
;
import
{
Vehicle
}
from
"lib/src/entity/vehicle/entity/Vehicle"
;
@
Component
({
components
:
{}
})
export
default
class
DetectionOrderView
extends
PaginationComponent
<
Vehicle
>
{
@
Prop
({
type
:
Object
,
required
:
true
})
pageData
:
any
;
}
</
script
>
<
style
scoped
lang=
"less"
>
.pageBox_title
{
width
:
100%
;
height
:
24px
;
float
:
left
;
color
:
#202020
;
font-size
:
16px
;
font-weight
:
700
;
line-height
:
24px
;
margin-top
:
16px
;
margin-bottom
:
16px
;
}
.pageBox_title
span
{
padding-left
:
10px
;
color
:
#9ca0a8
;
font-size
:
12px
;
font-weight
:
400
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
aus-front/admin/src/views/detection/order/components/
selectVehicleForm
.vue
→
aus-front/admin/src/views/detection/order/components/
promptDialog
.vue
View file @
d62e35a
<
template
>
<
template
>
<div>
<div>
<a-modal
v-model:open=
"dialogVisible"
width=
"760px"
title=
"选择车辆"
@
ok=
"handleOk"
>
<a-modal
v-model:open=
"dialogVisible"
title=
"提示"
@
ok=
"handleOk"
>
<div
class=
"tipBox"
>
<InfoCircleOutlined
style=
"font-size: 15px; color: #FC8B0A;"
/>
<span
style=
"padding-left: 8px;"
>
该车辆已有正在进行的检测工单,请勿重复创建
</span>
</div>
</a-modal>
</a-modal>
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Component
}
from
'vue-facing-decorator'
;
import
{
Component
}
from
'vue-facing-decorator'
;
import
{
message
}
from
"ant-design-vue"
;
import
{
EnhanceFormComponent
}
from
"@/core/form/EnhanceFormComponent"
;
import
{
EnhanceFormComponent
}
from
"@/core/form/EnhanceFormComponent"
;
import
{
User
}
from
"lib/src/entity/security/entity/User"
;
import
{
User
}
from
"lib/src/entity/security/entity/User"
;
import
{
InfoCircleOutlined
}
from
"@ant-design/icons-vue"
;
@
Component
({
@
Component
({
components
:
{}
components
:
{
InfoCircleOutlined
}
})
})
export
default
class
selectVehicleForm
extends
EnhanceFormComponent
<
User
>
{
export
default
class
promptDialog
extends
EnhanceFormComponent
<
User
>
{
dialogVisible
=
false
;
dialogVisible
=
false
;
vehicleId
=
''
;
init
():
void
{
showVisible
():
void
{
this
.
vehicleId
=
''
;
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
}
}
handleOk
()
{
handleOk
()
{
this
.
dialogVisible
=
false
;
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"less"
></
style
>
\ No newline at end of file
\ No newline at end of file
<
style
scoped
lang=
"less"
>
.tipBox
{
width
:
100%
;
height
:
22px
;
line-height
:
22px
;
color
:
#2f3133
;
font-size
:
14px
;
font-weight
:
400
;
font-family
:
"HarmonyOSSansSC"
;
}
</
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