Commit 98b51ebd authored by lanbaoming's avatar lanbaoming

2024-05-01 报表修改

parent 7d155129
...@@ -109,23 +109,32 @@ ...@@ -109,23 +109,32 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="数据筛选" prop="searchDataType"> <el-form-item label="总V值" prop="searchDataType1">
<el-select <el-select
v-model="queryParams.searchDataType1" v-model="queryParams.searchDataType1"
clearable clearable
style="width: 200px" style="width: 130px"
> >
<el-option <el-option
v-for="dict in SearchDataTypeList1" v-for="dict in SearchDataTypeList"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
</el-select> </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 <el-select
v-model="queryParams.searchDataType2" v-model="queryParams.searchDataType2"
clearable clearable
style="width: 200px" style="width: 130px"
> >
<el-option <el-option
v-for="dict in SearchDataTypeList" v-for="dict in SearchDataTypeList"
...@@ -135,57 +144,93 @@ ...@@ -135,57 +144,93 @@
/> />
</el-select> </el-select>
<el-input <el-input
v-model="queryParams.searchDataType3" v-model="queryParams.searchData2"
style="width: 200px" style="width: 130px"
placeholder="请输入数值" placeholder="请输入数值"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="时间筛选" prop="searchDateType4"> <el-form-item label="专线空运" prop="searchDataType3">
<el-select <el-select
v-model="queryParams.searchDataType4" v-model="queryParams.searchDataType3"
clearable clearable
style="width: 200px" style="width: 130px"
> >
<el-option label="首次成交时间" value="1"></el-option> <el-option
<el-option label="客户创建时间" value="0"></el-option> v-for="dict in SearchDataTypeList"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select> </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 <el-date-picker
v-model="queryParams.sdate4" v-model="queryParams.sdate4"
type="date" type="date"
style="width: 130px"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
clearable clearable
placeholder="请输入起始日期" placeholder="起始日期"
/> />
<el-date-picker <el-date-picker
v-model="queryParams.edate4" v-model="queryParams.edate4"
type="date" type="date"
style="width: 130px"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
clearable 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>
<el-form-item label="业绩产生时间" prop="searchDateType"> <el-form-item label="业绩产生时间" prop="searchDateType">
<el-date-picker <el-date-picker
v-model="queryParams.sdate" v-model="queryParams.sdate"
type="date" type="date"
style="width: 130px"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
clearable clearable
placeholder="请输入起始日期" placeholder="起始日期"
/> />
<el-date-picker <el-date-picker
v-model="queryParams.edate" v-model="queryParams.edate"
type="date" type="date"
style="width: 130px"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
clearable clearable
placeholder="请输截止日期" placeholder="截止日期"
/> />
</el-form-item> </el-form-item>
<el-form-item label="同比年份" prop="duibiYear"> <el-form-item label="同比年份" prop="duibiYear">
<el-date-picker <el-date-picker
v-model="queryParams.duibiYear" v-model="queryParams.duibiYear"
type="year" type="year"
style="width: 130px"
value-format="yyyy" value-format="yyyy"
placeholder="请选择同比年份" placeholder="请选择同比年份"
/> />
...@@ -256,13 +301,13 @@ ...@@ -256,13 +301,13 @@
<el-table-column <el-table-column
label="海运月均同比" label="海运月均同比"
align="center" align="center"
prop="sumvolumeTbShow1" prop="seaMonthAvgTb"
/> />
<el-table-column label="空运月均重量" align="center" prop="airMothAvg" /> <el-table-column label="空运月均重量" align="center" prop="airMothAvg" />
<el-table-column <el-table-column
label="空运月均同比" label="空运月均同比"
align="center" align="center"
prop="sumweightTbShow3" prop="airMothAvgTb"
/> />
<el-table-column label="重货总V值" align="center" prop="weightSumV" /> <el-table-column label="重货总V值" align="center" prop="weightSumV" />
<el-table-column label="重货占比" align="center" prop="weithtSumZb" /> <el-table-column label="重货占比" align="center" prop="weithtSumZb" />
...@@ -411,38 +456,11 @@ export default { ...@@ -411,38 +456,11 @@ export default {
return time.getTime() <= _now; 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: [ SearchDataTypeList: [
{ value: "1", label: "大于等于" }, { value: "1", label: "大于等于" },
{ value: "2", label: "等于" }, { value: "2", label: "等于" },
{ value: "3", label: "小于等于" }, { value: "3", label: "小于等于" },
], ],
SearchDateTypeList: [
{ value: "firstdate", label: "首次成交时间" },
{ value: "createdate", label: "客户创建时间" },
],
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
...@@ -458,15 +476,20 @@ export default { ...@@ -458,15 +476,20 @@ export default {
first: undefined, //是否首次成交 first: undefined, //是否首次成交
cusYjType: undefined, //客户业绩类型,新客户还是老客户 cusYjType: undefined, //客户业绩类型,新客户还是老客户
searchDataType1: undefined, //查询数据类型 searchDataType1: undefined, //查询数据类型
searchDataType2: undefined, searchData1: undefined, //总V值查询
searchDataType3: undefined, searchDataType2: undefined, //海运拼柜
searchData2: undefined, //海运拼柜
searchDataType3: undefined, //专线空运
searchData3: undefined, //专线空运
searchDataType4: undefined, //时间筛选 searchDataType4: undefined, //时间筛选
searchDateType: "createdate", //日期查询类型 searchDateType: "createdate", //日期查询类型
sdate: formatDate3(), //开始日期 sdate: formatDate3(), //开始日期
edate: formatDate2(), //结束日期 edate: formatDate2(), //结束日期
duibiYear: getLastYear(), //对比年份 duibiYear: getLastYear(), //对比年份
sdate4: undefined, //时间筛选开始值 sdate4: undefined, //客户创建时间
edate4: undefined, //时间筛选结束值 edate4: undefined, //客户创建时间
sdate5: undefined, //首次成交时间
edate5: undefined, //首次成交时间
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -634,16 +657,23 @@ export default { ...@@ -634,16 +657,23 @@ export default {
if (this.isRightPar() == false) return; if (this.isRightPar() == false) return;
// 执行导出 // 执行导出
this.$modal this.$modal
.confirm("是否确认导出数据项?") .confirm("是否确认导出所有数据项?")
.then(() => { .then(() => {
this.exportLoading = true; this.exportLoading = true;
return exportExcel(this.queryParams); return exportExcel(this.queryParams);
}) })
.then((response) => { .then((response) => {
//放入后台队列需要注释此行代码
this.$download.excel(response, "客户分析报表.xls"); this.$download.excel(response, "客户分析报表.xls");
this.exportLoading = false; this.exportLoading = false;
/*
this.$message.success(
this.$t("已加入导出队列,请稍后在下载日志中下载")
);*/
}) })
.catch(() => {}); .catch(() => {
this.exportLoading = false;
});
}, },
/** 查询部门下拉树结构 + 岗位下拉 */ /** 查询部门下拉树结构 + 岗位下拉 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment