Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
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 5f103c55
authored
May 27, 2021
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
special shop
1 parent
078e5c52
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
52 deletions
src/config/config.js
src/services/testDrive.js
src/views/testDrive/checkList.vue
src/views/vehicleManage/index.vue
src/config/config.js
View file @
5f103c5
...
@@ -46,4 +46,8 @@ const VEHICLE_API = {
...
@@ -46,4 +46,8 @@ const VEHICLE_API = {
const
APPROVAL_API
=
{
const
APPROVAL_API
=
{
TODO_SEARCH
:
'/trialdrive/approval/searchTodoApproval'
TODO_SEARCH
:
'/trialdrive/approval/searchTodoApproval'
}
}
export
{
API
,
COMMON_API
,
SPECIALSHOP_API
,
VEHICLE_API
,
APPROVAL_API
,
REPORT_API
,
VEHICLEDOC_API
}
// 试驾围栏审批接口
const
TEST_DRIVE_API
=
{
TEST_DRIVE_SEARCH
:
'/trialdrive/approval/searchFenceApp'
}
export
{
API
,
COMMON_API
,
SPECIALSHOP_API
,
VEHICLE_API
,
APPROVAL_API
,
REPORT_API
,
VEHICLEDOC_API
,
TEST_DRIVE_API
}
src/services/testDrive.js
View file @
5f103c5
import
{
VEHICL
E_API
}
from
'@/config/config'
import
{
TEST_DRIV
E_API
}
from
'@/config/config'
import
request
from
'@/services/request'
import
request
from
'@/services/request'
// 获取
车辆
列表
// 获取
试驾围栏审核
列表
function
getList
(
params
)
{
function
getList
(
params
)
{
const
url
=
VEHICLE_API
.
VEHICL
E_SEARCH
const
url
=
TEST_DRIVE_API
.
TEST_DRIV
E_SEARCH
return
request
(
params
,
url
)
return
request
(
params
,
url
)
}
}
// 新增车辆
export
{
getList
}
function
addVehicle
(
params
)
{
const
url
=
VEHICLE_API
.
VEHICLE_ADD
return
request
(
params
,
url
,
'post'
)
}
// 编辑车辆
function
editVehicle
(
params
)
{
const
url
=
VEHICLE_API
.
VEHICLE_EDIT
return
request
(
params
,
url
,
'post'
)
}
// 批量删除车辆
function
deleteVehicle
(
params
)
{
const
url
=
VEHICLE_API
.
VEHICLE_DELETE
return
request
(
params
,
url
)
}
// 解绑车辆
function
unbindVehicle
(
params
)
{
const
url
=
VEHICLE_API
.
VEHICLE_UNBIND
return
request
(
params
,
url
)
}
// 下载模板
function
downloadtemplate
(
params
)
{
const
url
=
VEHICLE_API
.
DOWNLOAD_TEMPLATE
return
request
(
params
,
url
)
}
// 导入车辆
function
importVehicle
(
params
)
{
const
url
=
VEHICLE_API
.
VEHICLE_IMPORT
return
request
(
params
,
url
)
}
// 导出车辆
function
exportVehicle
(
params
)
{
const
url
=
VEHICLE_API
.
VEHICLE_EXPORT
return
request
(
params
,
url
)
}
export
{
getList
,
addVehicle
,
downloadtemplate
,
editVehicle
,
deleteVehicle
,
unbindVehicle
,
importVehicle
,
exportVehicle
}
src/views/testDrive/checkList.vue
View file @
5f103c5
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<search-form
<search-form
class=
"searchTop border-shadow testDrive"
class=
"searchTop border-shadow testDrive"
:formModel=
"searchForm"
:formModel=
"searchForm"
:formList=
"
todo
FormList"
:formList=
"
check
FormList"
>
>
<slot
name=
"form-slot"
>
<slot
name=
"form-slot"
>
<el-button
<el-button
...
@@ -61,8 +61,10 @@ import { getList } from 'services/testDrive'
...
@@ -61,8 +61,10 @@ import { getList } from 'services/testDrive'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
searchForm
:
{},
searchForm
:
{
todoFormList
:
[
keywords
:
''
},
checkFormList
:
[
{
{
label
:
'关键字:'
,
label
:
'关键字:'
,
type
:
'input'
,
type
:
'input'
,
...
...
src/views/vehicleManage/index.vue
View file @
5f103c5
...
@@ -130,6 +130,33 @@
...
@@ -130,6 +130,33 @@
</el-form>
</el-form>
</slot>
</slot>
</basic-dialog>
</basic-dialog>
<basic-dialog
:title=
"filterDialogTitle"
:isVisible=
"filterVisible"
@
confirmDialog=
"filterConfirm"
@
closeDialog=
"closeFilter"
>
<slot>
<el-input
placeholder=
"输入关键字进行过滤"
v-model=
"filterText"
size=
"small"
>
</el-input>
<el-tree
class=
"filter-tree"
:data=
"filterTextData"
:filter-node-method=
"filterNode"
highlight-current
ref=
"tree"
node-key=
"id"
check-on-click-node
>
</el-tree>
</slot>
</basic-dialog>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -242,7 +269,7 @@ export default {
...
@@ -242,7 +269,7 @@ export default {
vehicleTitle
:
''
,
vehicleTitle
:
''
,
vehicleForm
:
{},
vehicleForm
:
{},
vehicleData
:
[
vehicleData
:
[
{
label
:
'特约店名称:'
,
prop
:
'shopName'
,
type
:
'
select'
,
options
:
[{
label
:
'121'
,
value
:
'fdfa'
}],
clearable
:
tru
e
},
{
label
:
'特约店名称:'
,
prop
:
'shopName'
,
type
:
'
input'
,
readonly
:
true
,
clickFunc
:
this
.
selectStor
e
},
{
label
:
'车架号:'
,
prop
:
'vin'
,
type
:
'input'
,
clearable
:
true
},
{
label
:
'车架号:'
,
prop
:
'vin'
,
type
:
'input'
,
clearable
:
true
},
{
label
:
'车型:'
,
prop
:
'modelId'
,
type
:
'select'
,
options
:
[],
clearable
:
true
},
{
label
:
'车型:'
,
prop
:
'modelId'
,
type
:
'select'
,
options
:
[],
clearable
:
true
},
{
label
:
'配置:'
,
prop
:
'configDesc'
,
type
:
'input'
,
clearable
:
true
},
{
label
:
'配置:'
,
prop
:
'configDesc'
,
type
:
'input'
,
clearable
:
true
},
...
@@ -262,6 +289,12 @@ export default {
...
@@ -262,6 +289,12 @@ export default {
innerColor
:
[{
required
:
true
,
message
:
'请输入内色'
,
trigger
:
'blur'
}],
innerColor
:
[{
required
:
true
,
message
:
'请输入内色'
,
trigger
:
'blur'
}],
serveType
:
[{
required
:
true
,
message
:
'请选择服役类型'
,
trigger
:
'blur'
}]
serveType
:
[{
required
:
true
,
message
:
'请选择服役类型'
,
trigger
:
'blur'
}]
},
},
// 特约店名称弹窗
filterDialogTitle
:
'选择组织'
,
filterVisible
:
false
,
filterText
:
''
,
filterTextData
:
[],
isOpen
:
true
,
// 导入
// 导入
importTitle
:
'批量操作'
,
importTitle
:
'批量操作'
,
vehicleImport
:
false
,
vehicleImport
:
false
,
...
@@ -279,7 +312,7 @@ export default {
...
@@ -279,7 +312,7 @@ export default {
this
.
vehicleTitle
=
'新增车辆'
this
.
vehicleTitle
=
'新增车辆'
this
.
vehicleForm
=
{}
this
.
vehicleForm
=
{}
this
.
vehicleData
.
map
(
item
=>
{
this
.
vehicleData
.
map
(
item
=>
{
if
(
item
.
type
==
'input'
)
return
item
.
readonly
=
false
if
(
item
.
type
==
'input'
&&
!
item
.
readonly
)
return
item
.
readonly
=
false
else
return
item
.
disabled
=
false
else
return
item
.
disabled
=
false
})
})
}
}
...
@@ -382,6 +415,28 @@ export default {
...
@@ -382,6 +415,28 @@ export default {
handleClose
(
type
)
{
handleClose
(
type
)
{
this
.
btnClick
(
type
)
this
.
btnClick
(
type
)
},
},
// 特约店弹窗
selectStore
()
{
this
.
filterText
=
''
this
.
filterDialogTitle
=
'选择特约店'
this
.
getStoreList
();
this
.
closeFilter
()
},
closeFilter
()
{
this
.
filterVisible
=
!
this
.
filterVisible
},
getStoreList
()
{
// getStoreList(params).then(res => {
// this.filterTextData = res.data
// })
},
filterConfirm
()
{
},
filterNode
(
value
,
data
)
{
if
(
!
value
)
return
true
return
data
.
label
.
indexOf
(
value
)
!==
-
1
},
downloadTemplate
()
{
downloadTemplate
()
{
downloadtemplate
({}).
then
(
res
=>
{
downloadtemplate
({}).
then
(
res
=>
{
console
.
log
(
'下载模板'
)
console
.
log
(
'下载模板'
)
...
...
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