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 81e6f5c3
authored
May 31, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
8b0f3772
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
117 additions
and
81 deletions
src/components/search-form/index.vue
src/routes/index.js
src/styles/common.scss
src/views/alarmCenter/removeAlarm.vue
src/views/reportManage/index.vue
src/views/specialShop/index.vue
src/views/toDo/index.vue
src/views/vehicleManage/index.vue
src/views/vehicleSubmit/addVehicle/index.vue
src/views/vehicleSubmit/index.vue
src/views/vehicleSubmit/vehicleCheck/index.vue
src/components/search-form/index.vue
View file @
81e6f5c
...
...
@@ -39,6 +39,7 @@
</
template
>
<
template
v-else-if=
"item.type === 'daterange'"
>
<el-date-picker
style=
"width: 100%;"
v-model=
"formModel[item.prop]"
type=
"daterange"
range-separator=
"至"
...
...
@@ -51,6 +52,7 @@
</
template
>
<
template
v-else-if=
"item.type === 'singleDate'"
>
<el-date-picker
style=
"width: 100%;"
v-model=
"formModel[item.prop]"
:type=
"item.dateType"
:value-format=
"item.format || 'yyyy-MM'"
...
...
src/routes/index.js
View file @
81e6f5c
...
...
@@ -40,7 +40,7 @@ const routes = [
{
path
:
'/vehicleSubmit/addVehicle'
,
name
:
'addVehicle'
,
meta
:
{
title
:
'
新增车辆
'
},
meta
:
{
title
:
'
资料详情
'
},
component
:
()
=>
import
(
'../views/vehicleSubmit/addVehicle/index.vue'
),
meta
:
{
keepAlive
:
true
...
...
src/styles/common.scss
View file @
81e6f5c
...
...
@@ -10,6 +10,10 @@
margin-left
:
20px
;
}
.m-b-md
{
margin-bottom
:
20px
;
}
.inline-b
{
display
:
inline-block
;
}
...
...
@@ -35,8 +39,8 @@
}
.system-container
{
padding
:
0
0
0
10px
;
margin
:
20px
24px
;
//
padding: 0 0 0 10px;
//
margin: 20px 24px;
background-color
:
#ffffff
;
overflow
:
hidden
;
...
...
src/views/alarmCenter/removeAlarm.vue
View file @
81e6f5c
...
...
@@ -20,6 +20,7 @@
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-refresh"
@
click=
"refresh"
>
重置
</el-button>
</span>
</search-form>
...
...
@@ -146,13 +147,21 @@ export default {
}
},
methods
:
{
refresh
()
{
this
.
searchForm
=
{}
this
.
searchDataForm
=
{}
this
.
$refs
.
removeAlarmForm
.
refreshTable
()
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
this
.
searchForm
.
daterange
)
{
this
.
searchDataForm
.
startTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchDataForm
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
}
if
(
this
.
searchForm
.
keywords
)
this
.
searchDataForm
.
keywords
=
this
.
searchForm
.
keywords
}
else
{
this
.
searchDataForm
.
startTime
=
''
this
.
searchDataForm
.
endTime
=
''
}
/* */
this
.
searchDataForm
.
keywords
=
this
.
searchForm
.
keywords
resolve
()
})
},
...
...
src/views/reportManage/index.vue
View file @
81e6f5c
<
template
>
<div
class=
"system-container"
>
<div
class=
"container"
>
<h1>
有效试驾(日报)
</h1>
<div
class=
"m-b-md"
>
用于
<span
class=
"red-text"
>
展示日运营数据并支持下载Excel文件
</span></div>
<search-form
class=
"searchTop border-shadow"
:formModel=
"searchForm"
...
...
@@ -20,6 +22,7 @@
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-refresh"
@
click=
"refresh"
>
重置
</el-button>
</span>
...
...
@@ -123,13 +126,22 @@ export default {
},
methods
:
{
refresh
()
{
this
.
searchForm
=
{}
this
.
searchDataForm
=
{}
this
.
$refs
.
reportTable
.
refreshTable
()
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
this
.
searchForm
.
date
)
if
(
this
.
searchForm
.
date
)
{
this
.
searchDataForm
.
year
=
this
.
searchForm
.
date
.
split
(
'-'
)[
0
]
this
.
searchDataForm
.
month
=
this
.
searchForm
.
date
.
split
(
'-'
)[
1
]
}
else
{
this
.
searchDataForm
.
year
=
''
this
.
searchDataForm
.
month
=
''
}
if
(
this
.
searchForm
.
keywords
)
this
.
searchDataForm
.
keywords
=
this
.
searchForm
.
keywords
this
.
searchDataForm
.
keywords
=
this
.
searchForm
.
keywords
resolve
()
})
},
...
...
src/views/specialShop/index.vue
View file @
81e6f5c
...
...
@@ -62,7 +62,7 @@
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-refresh"
@
click=
"re
set
"
@
click=
"re
fresh
"
>
重置
</el-button>
</span>
</search-form>
...
...
@@ -211,8 +211,9 @@ export default {
})
},
methods
:
{
re
set
()
{
re
fresh
()
{
this
.
searchForm
=
{}
this
.
$refs
.
shopTable
.
refreshTable
()
},
btnClick
(
pType
,
scope
)
{
const
shopId
=
scope
&&
scope
.
shopId
;
...
...
src/views/toDo/index.vue
View file @
81e6f5c
...
...
@@ -20,7 +20,7 @@
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-refresh"
@
click=
"re
set
"
@
click=
"re
fresh
"
>
重置
</el-button>
</span>
</search-form>
...
...
@@ -124,8 +124,8 @@ export default {
}
},
methods
:
{
re
set
()
{
this
.
searchForm
=
{}
re
fresh
()
{
this
.
searchForm
=
{
status
:
1
}
this
.
$refs
.
todoTable
.
refreshTable
()
},
btnClick
(
type
,
scope
)
{
...
...
src/views/vehicleManage/index.vue
View file @
81e6f5c
...
...
@@ -20,6 +20,7 @@
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-refresh"
@
click=
"refresh"
>
重置
</el-button>
</span>
</search-form>
...
...
@@ -356,6 +357,10 @@ export default {
},
methods
:
{
refresh
()
{
this
.
searchForm
=
{}
this
.
$refs
.
vehicleForm
.
refreshTable
()
},
btnClick
(
pType
,
scope
)
{
switch
(
pType
)
{
case
'create'
:
...
...
src/views/vehicleSubmit/addVehicle/index.vue
View file @
81e6f5c
...
...
@@ -59,13 +59,20 @@
>
未选择任何文件
</span>
</div>
</el-form-item>
<div
v-if=
"$route.params.url != 'checkView'"
>
<div>
<el-button
class=
"pull-right m-l-md"
type=
"defalut"
@
click=
"handleClose()"
>
取消
</el-button>
<el-button
v-if=
"$route.params.url == 'check'"
class=
"pull-right m-l-md"
type=
"defalut"
@
click=
"handleClose($route.params.url)"
>
{{
$route
.
params
.
url
==
'submit'
?
'取消'
:
'驳回'
}}
</el-button>
>
驳回
</el-button>
<el-button
v-if=
"$route.params.url != 'checkView'"
class=
"pull-right"
type=
"primary"
@
click=
"handleConfirm($route.params.url)"
...
...
@@ -154,7 +161,7 @@ export default {
}
]
},
submitData
:
[
'shopName'
,
'vin'
,
'modelName'
,
'buyType'
],
submitData
:
[
'shopName'
,
'vin'
,
'modelName'
,
'buyType'
,
'licensePlate'
],
checkData
:
[
'shopName'
,
'vin'
,
'modelName'
,
'licensePlate'
,
'buyType'
,
'registrationDate'
,
'saleManager'
,
'saleManagerPhone'
,
'remark'
],
vehicleData
:
[
{
label
:
'特约店名称:'
,
prop
:
'shopName'
,
type
:
'input'
,
disabled
:
true
},
...
...
@@ -188,16 +195,27 @@ export default {
},
watch
:
{
'$route.params'
(
val
)
{
console
.
log
(
val
,
'watch'
)
this
.
initData
(
val
)
}
},
mounted
()
{
this
.
initData
(
this
.
$route
.
params
)
},
methods
:
{
initData
(
val
)
{
if
(
val
.
vehicleId
)
{
this
.
vehicleForm
=
_
.
cloneDeep
(
this
.
vehicleDefalutForm
)
if
(
this
.
$refs
.
vehicleSubmitForm
)
this
.
$refs
.
vehicleSubmitForm
.
$children
[
0
].
clearValidate
()
findVehDoc
({
vehicleId
:
val
.
vehicleId
}).
then
(
res
=>
{
if
(
val
.
url
==
'submit'
)
{
this
.
submitData
.
forEach
(
item
=>
{
let
arr
=
this
.
submitData
if
(
val
.
status
==
3
)
{
arr
=
this
.
checkData
}
arr
.
forEach
(
item
=>
{
this
.
$set
(
this
.
vehicleForm
,
item
,
res
.
data
[
item
])
})
if
(
res
.
data
.
vehicleDocDtoList
.
length
!=
0
)
this
.
$set
(
this
.
vehicleForm
,
'list'
,
res
.
data
.
vehicleDocDtoList
)
}
else
{
this
.
checkData
.
forEach
(
item
=>
{
this
.
$set
(
this
.
vehicleForm
,
item
,
res
.
data
[
item
])
...
...
@@ -213,33 +231,7 @@ export default {
}
else
if
(
'submit'
)
{
this
.
vehicleData
=
_
.
cloneDeep
(
this
.
defalutData
)
}
}
},
mounted
()
{
let
params
=
this
.
$route
.
params
this
.
vehicleForm
=
_
.
cloneDeep
(
this
.
vehicleDefalutForm
)
if
(
this
.
$refs
.
vehicleSubmitForm
)
this
.
$refs
.
vehicleSubmitForm
.
$children
[
0
].
clearValidate
()
findVehDoc
({
vehicleId
:
params
.
vehicleId
}).
then
(
res
=>
{
if
(
params
.
url
==
'submit'
)
{
this
.
submitData
.
forEach
(
item
=>
{
this
.
$set
(
this
.
vehicleForm
,
item
,
res
.
data
[
item
])
})
}
else
{
this
.
checkData
.
forEach
(
item
=>
{
this
.
$set
(
this
.
vehicleForm
,
item
,
res
.
data
[
item
])
})
this
.
$set
(
this
.
vehicleForm
,
'list'
,
res
.
data
.
vehicleDocDtoList
)
}
})
if
(
params
.
url
==
'check'
)
{
this
.
vehicleData
.
forEach
(
item
=>
{
this
.
$set
(
item
,
'disabled'
,
true
)
})
}
else
if
(
'submit'
)
{
this
.
vehicleData
=
_
.
cloneDeep
(
this
.
defalutData
)
}
},
methods
:
{
},
handleConfirm
(
type
)
{
console
.
log
(
type
)
switch
(
type
)
{
...
...
@@ -273,37 +265,49 @@ export default {
})
break
case
'check'
:
const
params
=
{
id
:
this
.
$route
.
params
.
approvalId
,
status
:
2
}
updateApproval
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
({
message
:
'操作成功'
,
type
:
'success'
})
this
.
$router
.
replace
(
'/vehicleCheck'
)
this
.
vehicleForm
=
_
.
cloneDeep
(
this
.
vehicleDefalutForm
)
}
else
{
this
.
$message
({
message
:
'操作失败'
,
type
:
'error'
})
this
.
$confirm
(
'请再次确认是否要执行当前操作!'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
id
:
this
.
$route
.
params
.
approvalId
,
status
:
2
}
updateApproval
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
({
message
:
'操作成功'
,
type
:
'success'
})
this
.
$router
.
replace
(
'/vehicleCheck'
)
this
.
vehicleForm
=
_
.
cloneDeep
(
this
.
vehicleDefalutForm
)
}
else
{
this
.
$message
({
message
:
'操作失败'
,
type
:
'error'
})
}
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消操作'
})
})
break
}
},
handleClose
(
type
)
{
switch
(
type
)
{
case
'submit'
:
this
.
$router
.
go
(
-
1
)
break
case
'check'
:
this
.
$prompt
(
'请输入驳回原因'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
inputPattern
:
/^
(
a-z|A-Z|0-9
)
*
[^
$%^&*;:,<>?()
\"
"
\']{1,200}
$/
,
closeOnClickModal
:
false
,
closeOnPressEscape
:
false
}).
then
(({
value
})
=>
{
const
params
=
{
id
:
this
.
$route
.
params
.
approvalId
,
...
...
@@ -332,6 +336,9 @@ export default {
})
})
break
default
:
this
.
$router
.
go
(
-
1
)
break
}
},
// 上传图片
...
...
src/views/vehicleSubmit/index.vue
View file @
81e6f5c
...
...
@@ -20,7 +20,7 @@
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-refresh"
@
click=
"re
set
"
@
click=
"re
fresh
"
>
重置
</el-button>
</span>
</search-form>
...
...
@@ -113,7 +113,11 @@ export default {
prop
:
'shopLevel'
},
{
label
:
'车辆类型'
,
prop
:
'vehicleType'
prop
:
'vehicleType'
,
width
:
120
,
formatter
:
()
=>
{
return
'试乘试驾车辆'
}
},
{
label
:
'车架号'
,
prop
:
'vin'
,
...
...
@@ -169,14 +173,15 @@ export default {
})
},
methods
:
{
re
set
()
{
re
fresh
()
{
this
.
searchForm
=
{}
this
.
$refs
.
vehicleSubmitTable
.
refreshTable
()
},
btnClick
(
pType
,
scope
)
{
console
.
log
(
scope
)
switch
(
pType
)
{
case
'submit'
:
this
.
$router
.
push
({
name
:
'addVehicle'
,
params
:
{
vehicleId
:
scope
.
vehicleId
,
url
:
'submit'
}
})
this
.
$router
.
push
({
name
:
'addVehicle'
,
params
:
{
vehicleId
:
scope
.
vehicleId
,
url
:
'submit'
,
status
:
scope
.
status
}
})
break
}
},
...
...
src/views/vehicleSubmit/vehicleCheck/index.vue
View file @
81e6f5c
...
...
@@ -20,7 +20,7 @@
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-refresh"
@
click=
"re
set
"
@
click=
"re
fresh
"
>
重置
</el-button>
</span>
</search-form>
...
...
@@ -89,12 +89,6 @@ export default {
prop
:
'keywords'
,
placeholder
:
'特约店编码|店名称|围栏名称'
,
},
// {
// type: 'select',
// prop: 'submitStatus',
// placeholder: '请选择',
// options: []
// },
{
type
:
'select'
,
prop
:
'approvalStatus'
,
...
...
@@ -185,18 +179,15 @@ export default {
}
},
mounted
()
{
dictInfo
(
'submitStatus'
).
then
(
res
=>
{
this
.
checkFormList
[
1
].
options
=
res
.
data
this
.
submitStatusList
=
res
.
data
})
dictInfo
(
'approval_status'
).
then
(
res
=>
{
this
.
checkFormList
[
2
].
options
=
res
.
data
this
.
checkFormList
[
1
].
options
=
res
.
data
this
.
approvalStatusList
=
res
.
data
})
},
methods
:
{
re
set
()
{
re
fresh
()
{
this
.
searchForm
=
{}
this
.
$refs
.
vehicleCheckTable
.
refreshTable
()
},
btnClick
(
pType
,
scope
)
{
console
.
log
(
scope
)
...
...
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