Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-insurance
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 0e21c2df
authored
May 19, 2020
by
limin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
到店完善
1 parent
3847e4f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
91 deletions
src/api/index.js
src/api/shop.js
src/views/biz/shop/index.vue
src/api/index.js
View file @
0e21c2d
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2020-05-19 14:49:19
* @LastEditors: limin
* @LastEditTime: 2020-05-19 15:41:30
*/
import
{
GlAxios
}
from
'glsx-vue-common'
import
{
GlAxios
}
from
'glsx-vue-common'
// import { sign } from './sign'
// import { sign } from './sign'
import
{
methods
as
hisMethods
}
from
'./history'
import
{
methods
as
hisMethods
}
from
'./history'
import
{
methods
as
lostMethods
}
from
'./lost'
import
{
methods
as
lostMethods
}
from
'./lost'
import
{
methods
as
shopMethods
}
from
'./shop'
const
request
=
{
const
request
=
{
req
:
(
url
,
params
)
=>
{
req
:
(
url
,
params
)
=>
{
// params.source = 'glsx-oss-insurence'
// params.source = 'glsx-oss-insurence'
...
@@ -18,5 +27,6 @@ const request = {
...
@@ -18,5 +27,6 @@ const request = {
export
{
export
{
hisMethods
,
hisMethods
,
lostMethods
,
lostMethods
,
shopMethods
,
request
request
}
}
src/api/shop.js
0 → 100644
View file @
0e21c2d
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2020-05-19 15:37:49
* @LastEditors: limin
* @LastEditTime: 2020-05-19 15:40:06
*/
const
path
=
'biz/shop/'
const
methods
=
{
FindAll
:
`
${
path
}
findAll`
}
export
{
methods
}
src/views/biz/shop/index.vue
View file @
0e21c2d
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
<div
class=
"default shop"
>
<div
class=
"default shop"
>
<gl-form
:inline=
"true"
:model=
"searcher"
label-width=
"90px"
ref=
"searchForm"
>
<gl-form
:inline=
"true"
:model=
"searcher"
label-width=
"90px"
ref=
"searchForm"
>
<gl-row>
<gl-row>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"
8
"
:xl=
"8"
>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"
12
"
:xl=
"8"
>
<gl-form-item
label=
"选择条件"
>
<gl-form-item
label=
"选择条件"
>
<gl-input
placeholder=
"请输入内容"
v-model=
"
input5
"
class=
"input-with-select"
>
<gl-input
placeholder=
"请输入内容"
v-model=
"
searcher.searchValue
"
class=
"input-with-select"
>
<gl-select
v-model=
"se
lect
"
slot=
"prepend"
placeholder=
"请选择"
>
<gl-select
v-model=
"se
archer.searchKey
"
slot=
"prepend"
placeholder=
"请选择"
>
<gl-option
<gl-option
:label=
"op.label"
:label=
"op.label"
:value=
"op.value"
:value=
"op.value"
...
@@ -16,22 +16,8 @@
...
@@ -16,22 +16,8 @@
</gl-input>
</gl-input>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"8"
:xl=
"8"
>
<gl-form-item
label=
"到店次数"
prop=
"insurance_status"
>
<!--
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"8"
:xl=
"8"
>
<gl-input-number
class=
"w-150"
v-model=
"num1"
:min=
"1"
label=
"描述文字"
></gl-input-number>
--
<gl-input-number
class=
"w-150"
v-model=
"num1"
:min=
"1"
label=
"描述文字"
></gl-input-number>
</gl-form-item>
</gl-col>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"8"
:xl=
"8"
>
<gl-form-item
label=
"绑定客户时长"
prop=
"insurance_status"
>
<gl-input-number
class=
"w-150"
v-model=
"num1"
:min=
"1"
label=
"描述文字"
></gl-input-number>
--
<gl-input-number
class=
"w-150"
v-model=
"num1"
:min=
"1"
label=
"描述文字"
></gl-input-number>
天
</gl-form-item>
</gl-col>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"8"
:xl=
"8"
>
<gl-form-item
label=
"选择月份"
prop=
"channel_code"
>
<gl-form-item
label=
"选择月份"
prop=
"channel_code"
>
<gl-select
v-model=
"searcher.channel_code"
placeholder=
"全部"
clearable
>
<gl-select
v-model=
"searcher.channel_code"
placeholder=
"全部"
clearable
>
<gl-option
<gl-option
...
@@ -42,23 +28,35 @@
...
@@ -42,23 +28,35 @@
></gl-option>
></gl-option>
</gl-select>
</gl-select>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
-->
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"
8
"
:xl=
"8"
>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"
12
"
:xl=
"8"
>
<gl-form-item
label=
"到店时间"
prop=
"channel_code"
>
<gl-form-item
label=
"到店时间"
prop=
"channel_code"
>
<gl-date-picker
<gl-date-picker
v-model=
"tempData.
effect
_date"
v-model=
"tempData.
to_shop
_date"
type=
"daterange"
type=
"daterange"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始
日期
"
start-placeholder=
"开始
时间
"
end-placeholder=
"结束
日期
"
end-placeholder=
"结束
时间
"
value-format=
"yyyy-MM-dd HH:mm:ss"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
:default-time=
"['00:00:00', '23:59:59']"
@
change=
"on
Effect
DateChange"
@
change=
"on
ToShop
DateChange"
clearable
clearable
></gl-date-picker>
></gl-date-picker>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"8"
:xl=
"8"
>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"8"
:xl=
"8"
>
<gl-form-item
label=
"到店次数"
prop=
"insurance_status"
>
<gl-input-number
class=
"w-120"
v-model=
"searcher.number_of_shops_start"
:min=
"1"
></gl-input-number>
-
<gl-input-number
class=
"w-120"
v-model=
"searcher.number_of_shops_end"
:min=
"1"
></gl-input-number>
</gl-form-item>
</gl-col>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"8"
:xl=
"8"
>
<gl-form-item
label=
"绑定客户时长"
prop=
"insurance_status"
>
<gl-input-number
class=
"w-120"
v-model=
"searcher.binding_days_start"
:min=
"1"
></gl-input-number>
-
<gl-input-number
class=
"w-120"
v-model=
"searcher.binding_days_end"
:min=
"1"
></gl-input-number>
</gl-form-item>
</gl-col>
<gl-col
:xs=
"24"
:sm=
"12"
:md=
"8"
:lg=
"8"
:xl=
"8"
>
<gl-form-item>
<gl-form-item>
<gl-button
type=
"primary"
@
click=
"onSearch"
icon=
"el-icon-search"
>
查询
</gl-button>
<gl-button
type=
"primary"
@
click=
"onSearch"
icon=
"el-icon-search"
>
查询
</gl-button>
<gl-button
type=
"info"
@
click=
"onReset"
icon=
"el-icon-refresh"
>
重置
</gl-button>
<gl-button
type=
"info"
@
click=
"onReset"
icon=
"el-icon-refresh"
>
重置
</gl-button>
...
@@ -81,7 +79,7 @@
...
@@ -81,7 +79,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
his
Methods
,
request
}
from
'@/api'
import
{
shop
Methods
,
request
}
from
'@/api'
// import notice from '@/common/notice'
// import notice from '@/common/notice'
export
default
{
export
default
{
name
:
'insuranceHistory'
,
name
:
'insuranceHistory'
,
...
@@ -98,11 +96,11 @@ export default {
...
@@ -98,11 +96,11 @@ export default {
params
:
{
params
:
{
oSearchType
:
Object
.
freeze
([
oSearchType
:
Object
.
freeze
([
{
label
:
'全部'
,
value
:
''
},
{
label
:
'全部'
,
value
:
''
},
{
label
:
'车主姓名'
,
value
:
'
0
'
},
{
label
:
'车主姓名'
,
value
:
'
name
'
},
{
label
:
'车牌
'
,
value
:
'1
'
},
{
label
:
'车牌
号'
,
value
:
'plate_number
'
},
{
label
:
'车
牌车架'
,
value
:
'1
'
},
{
label
:
'车
架号'
,
value
:
'stand_no
'
},
{
label
:
'手机号'
,
value
:
'
2
'
},
{
label
:
'手机号'
,
value
:
'
mobile
'
},
{
label
:
'店面名称'
,
value
:
'
6
'
}
{
label
:
'店面名称'
,
value
:
'
merchant_name
'
}
]),
]),
omonth_code
:
Object
.
freeze
([
omonth_code
:
Object
.
freeze
([
{
label
:
'全部'
,
value
:
''
},
{
label
:
'全部'
,
value
:
''
},
...
@@ -118,9 +116,7 @@ export default {
...
@@ -118,9 +116,7 @@ export default {
])
])
},
},
tempData
:
{
tempData
:
{
success_date
:
null
,
to_shop_date
:
null
effect_date
:
null
,
active_date
:
null
},
},
pager
:
{
pager
:
{
current
:
1
,
current
:
1
,
...
@@ -128,28 +124,20 @@ export default {
...
@@ -128,28 +124,20 @@ export default {
total
:
0
total
:
0
},
},
searcher
:
{
searcher
:
{
search_text
:
''
,
searchKey
:
''
,
success_date_start
:
''
,
searchValue
:
''
,
success_date_end
:
''
,
number_of_shops_start
:
''
,
effect_date_start
:
''
,
number_of_shops_end
:
''
,
effect_date_end
:
''
,
binding_days_start
:
''
,
active_date_start
:
''
,
binding_days_end
:
''
,
active_date_end
:
''
,
trigger_time_start
:
''
,
device_type
:
''
,
trigger_time_end
:
''
mileage_start
:
''
,
mileage_end
:
''
,
card_version
:
''
,
insurance_status
:
''
,
channel_code
:
''
,
insure_period
:
''
,
company_code
:
''
},
},
showMore
:
false
,
tableData
:
{
tableData
:
{
border
:
true
,
border
:
true
,
stripe
:
true
,
stripe
:
true
,
align
:
'center'
,
align
:
'center'
,
height
:
parseInt
(
this
.
$client_height
()
-
3
2
0
),
height
:
parseInt
(
this
.
$client_height
()
-
3
0
0
),
data
:
[],
data
:
[],
number
:
{
number
:
{
label
:
'序号'
,
label
:
'序号'
,
...
@@ -159,48 +147,48 @@ export default {
...
@@ -159,48 +147,48 @@ export default {
column
:
[
column
:
[
{
{
label
:
'到店时间'
,
label
:
'到店时间'
,
prop
:
'
stand_no
'
,
prop
:
'
enter_time
'
,
width
:
'200px'
width
:
'200px'
},
},
{
{
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'
times
'
,
prop
:
'
stand_no
'
,
width
:
'300'
width
:
'300'
},
},
{
{
label
:
'停留时长(min)'
,
label
:
'停留时长(min)'
,
prop
:
'
na
me'
,
prop
:
'
keepTi
me'
,
width
:
'
20
0'
width
:
'
15
0'
},
},
{
{
label
:
'到店次数'
,
label
:
'到店次数'
,
prop
:
'
mobile
'
,
prop
:
'
number_of_shops
'
,
width
:
'
2
00'
width
:
'
1
00'
},
},
{
{
label
:
'客户姓名'
,
label
:
'客户姓名'
,
prop
:
'
trigger_ti
me'
,
prop
:
'
na
me'
,
width
:
'
2
00'
width
:
'
3
00'
},
},
{
{
label
:
'手机'
,
label
:
'手机'
,
prop
:
'm
erchant_typ
e'
,
prop
:
'm
obil
e'
,
width
:
'200'
width
:
'200'
},
},
{
{
label
:
'绑定客户时间'
,
label
:
'绑定客户时间'
,
prop
:
'
merchant_na
me'
,
prop
:
'
binding_ti
me'
,
width
:
'200'
width
:
'200'
},
},
{
{
label
:
'绑定客户时长(天)'
,
label
:
'绑定客户时长(天)'
,
prop
:
'
device_sn
'
,
prop
:
'
binding_days
'
,
width
:
'
20
0'
width
:
'
15
0'
},
},
{
{
label
:
'店面名称'
,
label
:
'店面名称'
,
prop
:
'
device_sn
'
,
prop
:
'
merchant_name
'
,
width
:
'
2
00'
width
:
'
3
00'
}
}
],
],
console
:
{
console
:
{
...
@@ -208,12 +196,14 @@ export default {
...
@@ -208,12 +196,14 @@ export default {
label
:
'操作'
,
label
:
'操作'
,
width
:
'150'
,
width
:
'150'
,
fixed
:
'right'
,
fixed
:
'right'
,
b
o
tton
:
[
b
u
tton
:
[
{
{
label
:
'
详情
'
,
label
:
'
跟进记录
'
,
type
:
'
primary
'
,
type
:
'
text
'
,
callback
:
(
index
,
rows
)
=>
{
callback
:
(
index
,
rows
)
=>
{
console
.
log
(
index
,
rows
)
this
.
recordVisible
=
true
this
.
getRecordList
(
rows
[
index
])
// this.$alert(rows[index])
}
}
}
}
]
]
...
@@ -230,7 +220,7 @@ export default {
...
@@ -230,7 +220,7 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
const
{
pager
,
searcher
}
=
this
const
{
pager
,
searcher
}
=
this
request
request
.
req
(
his
Methods
.
FindAll
,
{
pager
,
searcher
})
.
req
(
shop
Methods
.
FindAll
,
{
pager
,
searcher
})
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
pager
.
total
=
res
.
count
this
.
pager
.
total
=
res
.
count
this
.
tableData
.
data
=
res
.
rows
this
.
tableData
.
data
=
res
.
rows
...
@@ -249,14 +239,15 @@ export default {
...
@@ -249,14 +239,15 @@ export default {
this
.
pager
.
current
=
current
this
.
pager
.
current
=
current
this
.
findAll
()
this
.
findAll
()
},
},
onSuccessDateChange
(
data
)
{
onToShopDateChange
(
data
)
{
this
.
__date_filter__
(
'success'
,
data
)
if
(
data
===
null
)
{
},
this
.
searcher
.
trigger_time_start
=
this
.
searcher
.
trigger_time_end
=
''
onActiveDateChange
(
data
)
{
}
else
{
this
.
__date_filter__
(
'active'
,
data
)
const
[
start
,
end
]
=
data
},
this
.
searcher
.
trigger_time_start
=
start
onEffectDateChange
(
data
)
{
this
.
searcher
.
trigger_time_end
=
end
this
.
__date_filter__
(
'effect'
,
data
)
}
// this.__date_filter__('success', data)
},
},
onSearch
()
{
onSearch
()
{
this
.
pager
.
current
=
1
this
.
pager
.
current
=
1
...
@@ -270,17 +261,17 @@ export default {
...
@@ -270,17 +261,17 @@ export default {
{
obj
:
this
.
searcher
,
value
:
''
}
{
obj
:
this
.
searcher
,
value
:
''
}
])
])
},
},
__date_filter__
(
field
,
data
)
{
//
__date_filter__(field, data) {
if
(
data
===
null
)
{
//
if (data === null) {
this
.
searcher
[
`
${
field
}
_date_start`
]
=
this
.
searcher
[
//
this.searcher[`${field}_date_start`] = this.searcher[
`
${
field
}
_date_end`
//
`${field}_date_end`
]
=
''
//
] = ''
}
else
{
//
} else {
const
[
start
,
end
]
=
data
//
const [start, end] = data
this
.
searcher
[
`
${
field
}
_date_start`
]
=
start
//
this.searcher[`${field}_date_start`] = start
this
.
searcher
[
`
${
field
}
_date_end`
]
=
end
//
this.searcher[`${field}_date_end`] = end
}
//
}
},
//
},
__reset__
(
objArr
)
{
__reset__
(
objArr
)
{
objArr
.
forEach
(
item
=>
{
objArr
.
forEach
(
item
=>
{
for
(
const
key
in
item
.
obj
)
{
for
(
const
key
in
item
.
obj
)
{
...
@@ -299,8 +290,8 @@ export default {
...
@@ -299,8 +290,8 @@ export default {
.el-form-item__content
.el-input-group
{
.el-form-item__content
.el-input-group
{
vertical-align
:
baseline
;
vertical-align
:
baseline
;
}
}
.w-1
5
0
{
.w-1
2
0
{
width
:
1
5
0px
;
width
:
1
2
0px
;
}
}
.w-400
{
.w-400
{
width
:
400px
;
width
:
400px
;
...
...
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