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