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 d3e9ad08
authored
Mar 18, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 车辆检测开发
1 parent
6c8808ff
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
271 additions
and
37 deletions
aus-front/admin/.env.development
aus-front/admin/src/api/DetectionController.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/order/DetectionOrderPage.vue
aus-front/admin/src/views/detection/order/components/OrderAddForm.vue
aus-front/admin/src/views/detection/order/components/selectVehicleForm.vue
aus-front/admin/.env.development
View file @
d3e9ad0
...
@@ -6,9 +6,9 @@ PUBLISH_PATH = '/'
...
@@ -6,9 +6,9 @@ PUBLISH_PATH = '/'
BASE_URL = '/
BASE_URL = '/
# 开发环境
# 开发环境
VITE_API_BASE_URL = 'http://aus.test.glsx.com.cn/admin/rest'
#
VITE_API_BASE_URL = 'http://aus.test.glsx.com.cn/admin/rest'
#
VITE_API_BASE_URL = 'http://192.168.1.125:6903/admin/rest'
VITE_API_BASE_URL = 'http://192.168.1.125:6903/admin/rest'
#
VITE_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yIiwicmVhbE5hbWUiOiLotoXnuqfnrqHnkIblkZgiLCJwYXNzd29yZCI6IiQyYSQxMCRlQ21jWmxPaFltVUxrNklibjR3RVgudjNpa0dzcnBpYjh0SlBlcGJ6NVl1SXFWbUpCVER4eSIsImlzcyI6ImF1c0FwcCIsImV4cCI6MTg0NTI4NTU3NiwiaWF0IjoxNzczMjg1NTc2LCJqdGkiOiIzMCIsImF1dGhvcml0aWVzIjpbIlJPTEVfU1VQRVIiXX0.q0Ou_W9goNWUgasZTULp4IDWlZhVHWbQ0jn49qdZeSw'
VITE_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yIiwicmVhbE5hbWUiOiLotoXnuqfnrqHnkIblkZgiLCJwYXNzd29yZCI6IiQyYSQxMCRlQ21jWmxPaFltVUxrNklibjR3RVgudjNpa0dzcnBpYjh0SlBlcGJ6NVl1SXFWbUpCVER4eSIsImlzcyI6ImF1c0FwcCIsImV4cCI6MTg0NTI4NTU3NiwiaWF0IjoxNzczMjg1NTc2LCJqdGkiOiIzMCIsImF1dGhvcml0aWVzIjpbIlJPTEVfU1VQRVIiXX0.q0Ou_W9goNWUgasZTULp4IDWlZhVHWbQ0jn49qdZeSw'
VITE_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yIiwicmVhbE5hbWUiOiJhZG1pbmlzdHJhdG9yIiwicGFzc3dvcmQiOiIkMmEkMTAkQ0ZudVRoVHgyRHBMZC9UdkVVdVZGZXhqM1plUnlLQVNwMkllUW41VHFUbU5yN1N4UFI0VG0iLCJpc3MiOiJhdXNBcHAiLCJleHAiOjE4NDExNTk5OTgsImlhdCI6MTc2OTE1OTk5OCwianRpIjoiOTYiLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUEVSIl19.SCTolgZ7my8M3uK6YkV3svZas8qcdIzU_GP1XS7bhUk'
#
VITE_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yIiwicmVhbE5hbWUiOiJhZG1pbmlzdHJhdG9yIiwicGFzc3dvcmQiOiIkMmEkMTAkQ0ZudVRoVHgyRHBMZC9UdkVVdVZGZXhqM1plUnlLQVNwMkllUW41VHFUbU5yN1N4UFI0VG0iLCJpc3MiOiJhdXNBcHAiLCJleHAiOjE4NDExNTk5OTgsImlhdCI6MTc2OTE1OTk5OCwianRpIjoiOTYiLCJhdXRob3JpdGllcyI6WyJST0xFX1NVUEVSIl19.SCTolgZ7my8M3uK6YkV3svZas8qcdIzU_GP1XS7bhUk'
aus-front/admin/src/api/DetectionController.ts
View file @
d3e9ad0
...
@@ -17,6 +17,8 @@ export class DetectionController {
...
@@ -17,6 +17,8 @@ export class DetectionController {
return
axios
.
get
(
'account/preference/detail/'
+
id
,
{});
return
axios
.
get
(
'account/preference/detail/'
+
id
,
{});
}
}
static
inspectSummary
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
inspectSummary
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
get
(
'inspect/summary'
,
params
);
return
axios
.
get
(
'inspect/summary'
,
params
);
}
}
...
@@ -30,11 +32,11 @@ export class DetectionController {
...
@@ -30,11 +32,11 @@ export class DetectionController {
}
}
static
inspectStatus
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
inspectStatus
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'inspect/status
'
,
params
);
return
axios
.
post
(
'inspect/status
/'
+
params
.
id
,
params
);
}
}
static
exportPreference
(
axios
:
AxiosStatic
,
params
:
any
,
config
?:
any
):
Promise
<
AxiosResponse
<
void
>>
{
static
inspectExport
(
axios
:
AxiosStatic
,
params
:
any
,
config
?:
any
):
Promise
<
AxiosResponse
<
void
>>
{
return
axios
.
post
(
'
account/preference
/export'
,
params
,
config
);
return
axios
.
post
(
'
inspect
/export'
,
params
,
config
);
}
}
}
}
aus-front/admin/src/views/detection/inspector/DetectionInspectorPage.vue
View file @
d3e9ad0
...
@@ -51,8 +51,9 @@
...
@@ -51,8 +51,9 @@
检测师列表
检测师列表
</div>
</div>
<div
class=
"flex justify-end"
style=
"float: right;"
>
<div
class=
"flex justify-end"
style=
"float: right;"
>
<a-button
type=
"primary"
@
click=
"handleAdd()"
>
新增检测师
</a-button>
<a-button
type=
"primary"
@
click=
"handleAdd(
{}
)"
>
新增检测师
</a-button>
<a-button
@
click=
"downloadExcel"
:disabled=
"exporting"
>
导出
</a-button>
<a-button
@
click=
"downloadExcel"
:disabled=
"exporting"
>
导出
</a-button>
<!-- <a-button @click="handleEnableDisable({})">启用/禁用</a-button> -->
</div>
</div>
</div>
</div>
...
@@ -68,7 +69,10 @@
...
@@ -68,7 +69,10 @@
</a-table>
</a-table>
<!--新增/编辑检测师弹窗-->
<!--新增/编辑检测师弹窗-->
<InspectorAddForm
ref=
"inspectorAddFormRef"
/>
<InspectorAddForm
ref=
"inspectorAddFormRef"
@
emitOk=
"pageLoad"
/>
<!--启用/禁用检测师弹窗-->
<EnableDialog
ref=
"enableDialogRef"
@
emitOk=
"pageLoad"
/>
</a-card>
</a-card>
</div>
</div>
...
@@ -83,13 +87,14 @@ import { Security } from "@/store";
...
@@ -83,13 +87,14 @@ import { Security } from "@/store";
import
{
ExportUtil
}
from
"@/common/ExportUtil"
;
import
{
ExportUtil
}
from
"@/common/ExportUtil"
;
import
InspectorAddForm
from
"@/views/detection/inspector/components/InspectorAddForm.vue"
;
import
InspectorAddForm
from
"@/views/detection/inspector/components/InspectorAddForm.vue"
;
import
EnableDialog
from
"@/views/detection/inspector/components/EnableDialog.vue"
;
import
{
DetectionController
}
from
"@/api/DetectionController"
;
import
{
DetectionController
}
from
"@/api/DetectionController"
;
import
{
convertToTree
}
from
"@/common/chinaarea"
;
import
{
convertToTree
}
from
"@/common/chinaarea"
;
import
{
DefaultOptionType
}
from
"ant-design-vue/es/vc-cascader/Cascader"
;
import
{
DefaultOptionType
}
from
"ant-design-vue/es/vc-cascader/Cascader"
;
@
Component
({
@
Component
({
components
:
{
InspectorAddForm
}
components
:
{
InspectorAddForm
,
EnableDialog
}
})
})
...
@@ -185,20 +190,29 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
...
@@ -185,20 +190,29 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
this
.
pageReset
();
this
.
pageReset
();
}
}
handleAdd
():
void
{
handleAdd
(
data
):
void
{
this
.
$refs
.
inspectorAddFormRef
.
init
({});
this
.
$refs
.
inspectorAddFormRef
.
init
(
data
||
{});
}
//启用/禁用检测师
handleEnableDisable
(
record
)
{
this
.
$refs
.
enableDialogRef
.
init
({
id
:
'3'
,
status
:
0
,
});
}
}
//
downloadExcel
():
void
{
downloadExcel
():
void
{
// this.exporting = true;
this
.
exporting
=
true
;
// VehicleController.exportPriceVehicles(this.axios, this.pagination.requestParams, { responseType: 'blob' }).then(response => {
let
paramsData
=
{
// message.success('导出任务已创建,请稍后在浏览器下载列表中查看');
...
this
.
pagination
.
requestParams
,
// ExportUtil.downloadExcelFile(response.data, '评估定价车辆列表');
}
// }).catch(error => {
DetectionController
.
inspectExport
(
this
.
axios
,
paramsData
,
{
responseType
:
'blob'
}).
then
(
response
=>
{
// console.error('Error downloading Word file:', error);
message
.
success
(
'导出任务已创建,请稍后在浏览器下载列表中查看'
);
// }).finally(() => {
ExportUtil
.
downloadExcelFile
(
response
.
data
,
'检测师列表'
);
// this.exporting = false;
}).
catch
(
error
=>
{
// });
console
.
error
(
'Error downloading Word file:'
,
error
);
}).
finally
(()
=>
{
this
.
exporting
=
false
;
});
}
}
}
}
</
script
>
</
script
>
...
...
aus-front/admin/src/views/detection/inspector/components/EnableDialog.vue
View file @
d3e9ad0
...
@@ -2,16 +2,21 @@
...
@@ -2,16 +2,21 @@
<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"
<a-form
layout=
"vertical"
:model=
"postData"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
ref=
"formRef"
>
<a-form-item
name=
"name"
label=
"禁用原因"
:rules=
"[
{ required: true, message: '请输入禁用原因' }]">
<div
v-if=
"!pageStatus"
class=
"tipBox"
>
是否确认启用该账号?
</div>
<div
v-if=
"pageStatus"
class=
"disabledTip"
>
<div
class=
"outlinedBox"
>
<InfoCircleOutlined
style=
"font-size: 15px; color: #FC8B0A;"
/>
</div>
<div
class=
"disabledTxt"
>
禁用后,该检测师将无法登录APP且无法被指派新任务,已在进行中的任务不受影响。是否确认禁用?
</div>
</div>
<a-form-item
v-if=
"pageStatus"
name=
"textarea"
label=
"禁用原因"
:rules=
"[
{ required: true, message: '请输入禁用原因' }]">
<a-textarea
v-model:value=
"postData.textarea"
show-count
:maxlength=
"200"
<a-textarea
v-model:value=
"postData.textarea"
show-count
:maxlength=
"200"
style=
"width: 456px;"
/>
style=
"width: 456px;"
/>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
</a-spin>
</a-spin>
</a-modal>
</a-modal>
</div>
</div>
...
@@ -24,26 +29,27 @@ import { DetectionController } from "@/api/DetectionController";
...
@@ -24,26 +29,27 @@ import { DetectionController } from "@/api/DetectionController";
import
{
message
}
from
"ant-design-vue"
;
import
{
message
}
from
"ant-design-vue"
;
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
EnableDialog
extends
EnhanceFormComponent
<
User
>
{
export
default
class
EnableDialog
extends
EnhanceFormComponent
<
User
>
{
dialogVisible
=
false
;
dialogVisible
=
false
;
titleVisible
=
"启用提示"
;
titleVisible
=
"启用提示"
;
pageStatus
=
1
;
postData
=
{
postData
=
{
id
:
''
,
status
:
1
,
textarea
:
''
}
id
:
''
,
status
:
1
,
textarea
:
''
}
init
(
data
):
void
{
init
(
data
):
void
{
this
.
dialogVisible
=
true
;
this
.
pageStatus
=
data
.
status
;
this
.
postData
.
id
=
data
.
id
;
this
.
postData
.
status
=
data
.
status
;
this
.
postData
.
textarea
=
''
;
this
.
titleVisible
=
!
data
.
status
?
"启用提示"
:
"账号禁用"
;
this
.
titleVisible
=
!
data
.
status
?
"启用提示"
:
"账号禁用"
;
this
.
dialogVisible
=
true
;
}
}
handleOk
()
{
handleOk
()
{
...
@@ -51,8 +57,8 @@ export default class EnableDialog extends EnhanceFormComponent<User> {
...
@@ -51,8 +57,8 @@ export default class EnableDialog extends EnhanceFormComponent<User> {
if
(
valid
)
{
if
(
valid
)
{
this
.
submitted
=
true
;
this
.
submitted
=
true
;
const
formData
=
{
const
formData
=
{
id
:
this
.
postData
.
id
||
''
,
id
:
this
.
postData
.
id
,
status
:
1
,
status
:
this
.
postData
.
status
==
1
?
0
:
1
,
textarea
:
this
.
postData
.
textarea
,
textarea
:
this
.
postData
.
textarea
,
}
}
DetectionController
.
inspectStatus
(
this
.
axios
,
formData
).
then
(
response
=>
{
DetectionController
.
inspectStatus
(
this
.
axios
,
formData
).
then
(
response
=>
{
...
@@ -67,3 +73,37 @@ export default class EnableDialog extends EnhanceFormComponent<User> {
...
@@ -67,3 +73,37 @@ export default class EnableDialog extends EnhanceFormComponent<User> {
}
}
</
script
>
</
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/DetectionOrderPage.vue
View file @
d3e9ad0
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<a-button
@
click=
"downloadExcel"
:disabled=
"exporting"
>
批量导出
</a-button>
<a-button
@
click=
"downloadExcel"
:disabled=
"exporting"
>
批量导出
</a-button>
</div>
</div>
<div
class=
"flex justify-end"
style=
"float: right;"
>
<div
class=
"flex justify-end"
style=
"float: right;"
>
<a-button
type=
"primary"
>
创建工单
</a-button>
<a-button
type=
"primary"
@
click=
"handleAddOrder(
{})"
>创建工单
</a-button>
<a-button
@
click=
"downloadExcel"
:disabled=
"exporting"
>
导出
</a-button>
<a-button
@
click=
"downloadExcel"
:disabled=
"exporting"
>
导出
</a-button>
</div>
</div>
</div>
</div>
...
@@ -29,6 +29,9 @@
...
@@ -29,6 +29,9 @@
</template>
</template>
</a-table>
</a-table>
<!--新增/编辑工单弹窗-->
<OrderAddForm
ref=
"orderAddFormRef"
@
emitOk=
"pageLoad"
/>
</a-card>
</a-card>
</template>
</template>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
@@ -42,8 +45,11 @@ import { Vehicle } from "lib/src/entity/vehicle/entity/Vehicle";
...
@@ -42,8 +45,11 @@ import { Vehicle } from "lib/src/entity/vehicle/entity/Vehicle";
import
{
Security
}
from
"@/store"
;
import
{
Security
}
from
"@/store"
;
import
{
ExportUtil
}
from
"@/common/ExportUtil"
;
import
{
ExportUtil
}
from
"@/common/ExportUtil"
;
import
OrderAddForm
from
"@/views/detection/order/components/OrderAddForm.vue"
;
@
Component
({
@
Component
({
components
:
{
VehicleStateTag
}
components
:
{
OrderAddForm
}
})
})
export
default
class
AppraiseVehiclePricePage
extends
PaginationComponent
<
Vehicle
>
{
export
default
class
AppraiseVehiclePricePage
extends
PaginationComponent
<
Vehicle
>
{
vehicleStateIndex
=
"0"
;
vehicleStateIndex
=
"0"
;
...
@@ -113,6 +119,11 @@ export default class AppraiseVehiclePricePage extends PaginationComponent<Vehicl
...
@@ -113,6 +119,11 @@ export default class AppraiseVehiclePricePage extends PaginationComponent<Vehicl
return
tabs
;
return
tabs
;
}
}
// 新增工单 编辑
handleAddOrder
(
data
)
{
this
.
$refs
.
orderAddFormRef
.
init
(
data
);
}
changeTab
(
orderState
:
string
):
void
{
changeTab
(
orderState
:
string
):
void
{
this
.
tabKey
=
orderState
;
this
.
tabKey
=
orderState
;
...
...
aus-front/admin/src/views/detection/order/components/OrderAddForm.vue
0 → 100644
View file @
d3e9ad0
<
template
>
<div>
<a-drawer
width=
"680"
:title=
"titleVisible"
placement=
"right"
:open=
"dialogVisible"
@
close=
"onClose"
>
<a-spin
:spinning=
"submitted"
style=
"margin-top: 16px;"
>
<a-form
layout=
"vertical"
:model=
"postData"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
<a-form-item
name=
"vehicleId"
label=
"车辆"
:rules=
"[
{ required: true, message: '请选择车辆' },]">
<a-button
@
click=
"addVehicle()"
>
选择车辆
</a-button>
</a-form-item>
<a-form-item
name=
"inspectorId"
label=
"检测人员"
:rules=
"[
{ required: true, message: '请输入检测人员' }]">
<a-input
v-model:value=
"postData.inspectorId"
placeholder=
"输入姓名或电话搜索"
:maxlength=
"20"
style=
"width: 376px;"
/>
</a-form-item>
<a-form-item
name=
"inspectionAddress"
label=
"检测地址"
:rules=
"[
{ required: true, message: '请输入检测地址' }]">
<a-input
v-model:value=
"postData.inspectionAddress"
placeholder=
"请输入检检测地址"
style=
"width: 376px;"
/>
</a-form-item>
<a-form-item
name=
"remark"
label=
"备注说明"
>
<a-textarea
v-model:value=
"postData.remark"
show-count
:maxlength=
"500"
:rows=
"6"
style=
"width: 580px;"
/>
</a-form-item>
</a-form>
</a-spin>
</a-drawer>
</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
{
DefaultOptionType
}
from
"ant-design-vue/es/vc-cascader/Cascader"
;
import
{
convertToTree
}
from
"@/common/chinaarea"
;
import
{
handleError
}
from
'vue'
;
import
VehiclePicker
from
"@/views/vehicle/auction/VehiclePicker.vue"
;
import
{
ModalService
}
from
"@/components/ModalService"
;
@
Component
({
components
:
{
VehiclePicker
,
ModalService
}
})
export
default
class
OrderAddForm
extends
EnhanceFormComponent
<
User
>
{
dialogVisible
=
false
;
titleVisible
=
"创建检测工单"
;
postData
=
{
id
:
""
,
vehicleId
:
""
,
inspectorId
:
""
,
inspectionAddress
:
""
,
remark
:
""
,
}
vehicleData
=
{}
init
(
data
):
void
{
this
.
dialogVisible
=
true
;
this
.
titleVisible
=
data
.
id
?
"编辑检测师"
:
"创建检测工单"
;
}
onClose
()
{
this
.
dialogVisible
=
false
;
}
addVehicle
():
void
{
const
modal
=
ModalService
.
confirm
({
title
:
'选择车辆'
,
component
:
VehiclePicker
,
closable
:
true
,
appContext
:
this
.
$
.
appContext
,
width
:
960
,
props
:
{
selectType
:
'checkbox'
,
vehicleState
:
'PRICED'
,
},
onOk
:
(
component
):
void
=>
{
component
.
selectVehicle
();
},
emits
:
{
handleOk
:
(
vehicles
)
=>
{
if
(
vehicles
.
length
===
0
)
{
message
.
error
(
"请选择待检测车辆"
);
return
;
}
if
(
vehicles
.
length
>
1
)
{
message
.
error
(
"只能选择一辆待检测车辆"
);
return
;
}
this
.
vehicleData
=
vehicles
[
0
];
modal
.
destroy
();
}
},
});
}
handleOk
()
{
this
.
$refs
.
formRef
.
validate
().
then
((
valid
)
=>
{
if
(
valid
)
{
this
.
submitted
=
true
;
const
formData
=
{
vehicleId
:
this
.
postData
.
vehicleId
,
inspectorId
:
this
.
postData
.
inspectorId
,
inspectionAddress
:
this
.
postData
.
inspectionAddress
,
remark
:
this
.
postData
.
remark
,
}
if
(
this
.
postData
.
id
)
{
DetectionController
.
inspectUpdate
(
this
.
axios
,
formData
).
then
(
response
=>
{
this
.
submitted
=
false
;
message
.
success
(
"更新成功"
);
this
.
$emit
(
"emitOk"
);
this
.
dialogVisible
=
false
;
}).
finally
(()
=>
this
.
submitted
=
false
);
}
else
{
DetectionController
.
inspectAdd
(
this
.
axios
,
formData
).
then
(
response
=>
{
this
.
submitted
=
false
;
message
.
success
(
"创建成功"
);
this
.
$emit
(
"emitOk"
);
this
.
dialogVisible
=
false
;
}).
finally
(()
=>
this
.
submitted
=
false
);
}
}
});
}
}
</
script
>
\ No newline at end of file
\ No newline at end of file
aus-front/admin/src/views/detection/order/components/selectVehicleForm.vue
0 → 100644
View file @
d3e9ad0
<
template
>
<div>
<a-modal
v-model:open=
"dialogVisible"
width=
"760px"
title=
"选择车辆"
@
ok=
"handleOk"
>
</a-modal>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
}
from
'vue-facing-decorator'
;
import
{
message
}
from
"ant-design-vue"
;
import
{
EnhanceFormComponent
}
from
"@/core/form/EnhanceFormComponent"
;
import
{
User
}
from
"lib/src/entity/security/entity/User"
;
@
Component
({
components
:
{}
})
export
default
class
selectVehicleForm
extends
EnhanceFormComponent
<
User
>
{
dialogVisible
=
false
;
vehicleId
=
''
;
init
():
void
{
this
.
vehicleId
=
''
;
this
.
dialogVisible
=
true
;
}
handleOk
()
{
}
}
</
script
>
<
style
scoped
lang=
"less"
></
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