Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
98b51ebd
Commit
98b51ebd
authored
May 01, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-05-01 报表修改
parent
7d155129
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
50 deletions
+80
-50
index.vue
src/views/report/customer_analysis/index.vue
+80
-50
No files found.
src/views/report/customer_analysis/index.vue
View file @
98b51ebd
...
...
@@ -109,23 +109,32 @@
/>
</el-select>
</el-form-item>
<el-form-item
label=
"
数据筛选"
prop=
"searchDataType
"
>
<el-form-item
label=
"
总V值"
prop=
"searchDataType1
"
>
<el-select
v-model=
"queryParams.searchDataType1"
clearable
style=
"width:
20
0px"
style=
"width:
13
0px"
>
<el-option
v-for=
"dict in SearchDataTypeList
1
"
v-for=
"dict in SearchDataTypeList"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
<el-input
v-model=
"queryParams.searchData1"
style=
"width: 130px"
placeholder=
"请输入数值"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"海运拼柜"
prop=
"searchDataType2"
>
<el-select
v-model=
"queryParams.searchDataType2"
clearable
style=
"width:
20
0px"
style=
"width:
13
0px"
>
<el-option
v-for=
"dict in SearchDataTypeList"
...
...
@@ -135,57 +144,93 @@
/>
</el-select>
<el-input
v-model=
"queryParams.searchData
Type3
"
style=
"width:
20
0px"
v-model=
"queryParams.searchData
2
"
style=
"width:
13
0px"
placeholder=
"请输入数值"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"
时间筛选"
prop=
"searchDateType4
"
>
<el-form-item
label=
"
专线空运"
prop=
"searchDataType3
"
>
<el-select
v-model=
"queryParams.searchDataType
4
"
v-model=
"queryParams.searchDataType
3
"
clearable
style=
"width:
20
0px"
style=
"width:
13
0px"
>
<el-option
label=
"首次成交时间"
value=
"1"
></el-option>
<el-option
label=
"客户创建时间"
value=
"0"
></el-option>
<el-option
v-for=
"dict in SearchDataTypeList"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
<el-input
v-model=
"queryParams.searchData3"
style=
"width: 130px"
placeholder=
"请输入数值"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"客户创建时间"
>
<el-date-picker
v-model=
"queryParams.sdate4"
type=
"date"
style=
"width: 130px"
value-format=
"yyyy-MM-dd"
clearable
placeholder=
"
请输入
起始日期"
placeholder=
"起始日期"
/>
<el-date-picker
v-model=
"queryParams.edate4"
type=
"date"
style=
"width: 130px"
value-format=
"yyyy-MM-dd"
clearable
placeholder=
"请输截止日期"
placeholder=
"截止日期"
/>
</el-form-item>
<el-form-item
label=
"首次成交时间"
>
<el-date-picker
v-model=
"queryParams.sdate5"
type=
"date"
style=
"width: 130px"
value-format=
"yyyy-MM-dd"
clearable
placeholder=
"起始日期"
/>
<el-date-picker
v-model=
"queryParams.edate5"
type=
"date"
style=
"width: 130px"
value-format=
"yyyy-MM-dd"
clearable
placeholder=
"截止日期"
/>
</el-form-item>
<el-form-item
label=
"业绩产生时间"
prop=
"searchDateType"
>
<el-date-picker
v-model=
"queryParams.sdate"
type=
"date"
style=
"width: 130px"
value-format=
"yyyy-MM-dd"
clearable
placeholder=
"
请输入
起始日期"
placeholder=
"起始日期"
/>
<el-date-picker
v-model=
"queryParams.edate"
type=
"date"
style=
"width: 130px"
value-format=
"yyyy-MM-dd"
clearable
placeholder=
"
请输
截止日期"
placeholder=
"截止日期"
/>
</el-form-item>
<el-form-item
label=
"同比年份"
prop=
"duibiYear"
>
<el-date-picker
v-model=
"queryParams.duibiYear"
type=
"year"
style=
"width: 130px"
value-format=
"yyyy"
placeholder=
"请选择同比年份"
/>
...
...
@@ -256,13 +301,13 @@
<el-table-column
label=
"海运月均同比"
align=
"center"
prop=
"s
umvolumeTbShow1
"
prop=
"s
eaMonthAvgTb
"
/>
<el-table-column
label=
"空运月均重量"
align=
"center"
prop=
"airMothAvg"
/>
<el-table-column
label=
"空运月均同比"
align=
"center"
prop=
"
sumweightTbShow3
"
prop=
"
airMothAvgTb
"
/>
<el-table-column
label=
"重货总V值"
align=
"center"
prop=
"weightSumV"
/>
<el-table-column
label=
"重货占比"
align=
"center"
prop=
"weithtSumZb"
/>
...
...
@@ -411,38 +456,11 @@ export default {
return
time
.
getTime
()
<=
_now
;
},
},
SearchDataTypeList1
:
[
{
value
:
"
allsumvolume
"
,
label
:
"
总值
"
},
{
value
:
"
2
"
,
label
:
"
总值同比
"
},
{
value
:
"
3
"
,
label
:
"
海运拼柜
"
},
{
value
:
"
4
"
,
label
:
"
海运占比
"
},
{
value
:
"
5
"
,
label
:
"
海运同比
"
},
{
value
:
"
6
"
,
label
:
"
海运占比
"
},
{
value
:
"
7
"
,
label
:
"
专线空运
"
},
{
value
:
"
8
"
,
label
:
"
空运占比
"
},
{
value
:
"
9
"
,
label
:
"
空运同比
"
},
{
value
:
"
10
"
,
label
:
"
月均
"
},
{
value
:
"
11
"
,
label
:
"
月均同比
"
},
{
value
:
"
12
"
,
label
:
"
海运月均方数
"
},
{
value
:
"
13
"
,
label
:
"
空运月均重量
"
},
{
value
:
"
14
"
,
label
:
"
重货总V值
"
},
{
value
:
"
15
"
,
label
:
"
重货占比
"
},
{
value
:
"
16
"
,
label
:
"
泡货总V值
"
},
{
value
:
"
17
"
,
label
:
"
泡货总V值
"
},
{
value
:
"
18
"
,
label
:
"
泡货占比
"
},
{
value
:
"
19
"
,
label
:
"
控货总V值
"
},
{
value
:
"
20
"
,
label
:
"
控货占比
"
},
{
value
:
"
21
"
,
label
:
"
提货率
"
},
],
SearchDataTypeList
:
[
{
value
:
"
1
"
,
label
:
"
大于等于
"
},
{
value
:
"
2
"
,
label
:
"
等于
"
},
{
value
:
"
3
"
,
label
:
"
小于等于
"
},
],
SearchDateTypeList
:
[
{
value
:
"
firstdate
"
,
label
:
"
首次成交时间
"
},
{
value
:
"
createdate
"
,
label
:
"
客户创建时间
"
},
],
// 查询参数
queryParams
:
{
pageNo
:
1
,
...
...
@@ -458,15 +476,20 @@ export default {
first
:
undefined
,
//是否首次成交
cusYjType
:
undefined
,
//客户业绩类型,新客户还是老客户
searchDataType1
:
undefined
,
//查询数据类型
searchDataType2
:
undefined
,
searchDataType3
:
undefined
,
searchData1
:
undefined
,
//总V值查询
searchDataType2
:
undefined
,
//海运拼柜
searchData2
:
undefined
,
//海运拼柜
searchDataType3
:
undefined
,
//专线空运
searchData3
:
undefined
,
//专线空运
searchDataType4
:
undefined
,
//时间筛选
searchDateType
:
"
createdate
"
,
//日期查询类型
sdate
:
formatDate3
(),
//开始日期
edate
:
formatDate2
(),
//结束日期
duibiYear
:
getLastYear
(),
//对比年份
sdate4
:
undefined
,
//时间筛选开始值
edate4
:
undefined
,
//时间筛选结束值
sdate4
:
undefined
,
//客户创建时间
edate4
:
undefined
,
//客户创建时间
sdate5
:
undefined
,
//首次成交时间
edate5
:
undefined
,
//首次成交时间
},
// 表单参数
form
:
{},
...
...
@@ -634,16 +657,23 @@ export default {
if
(
this
.
isRightPar
()
==
false
)
return
;
// 执行导出
this
.
$modal
.
confirm
(
"
是否确认导出数据项?
"
)
.
confirm
(
"
是否确认导出
所有
数据项?
"
)
.
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportExcel
(
this
.
queryParams
);
})
.
then
((
response
)
=>
{
//放入后台队列需要注释此行代码
this
.
$download
.
excel
(
response
,
"
客户分析报表.xls
"
);
this
.
exportLoading
=
false
;
/*
this.$message.success(
this.$t("已加入导出队列,请稍后在下载日志中下载")
);*/
})
.
catch
(()
=>
{});
.
catch
(()
=>
{
this
.
exportLoading
=
false
;
});
},
/** 查询部门下拉树结构 + 岗位下拉 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment