Commit 22067a6c authored by lanbaoming's avatar lanbaoming

2024-04-19 报表

parent f143f192
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['my:test:create']" v-hasPermi="['report:permission:create']"
>新增</el-button >新增</el-button
> >
</el-col> </el-col>
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['my:test:update']" v-hasPermi="['report:permission:update']"
>修改</el-button >修改</el-button
> >
<el-button <el-button
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['my:test:delete']" v-hasPermi="['report:permission:delete']"
>删除</el-button >删除</el-button
> >
</template> </template>
......
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
:loading="exportLoading" :loading="exportLoading"
>导出</el-button >导出</el-button
> >
<el-button type="primary" size="mini" @click="test" v-show="false"> <el-button type="primary" size="mini" @click="test" v-show="true">
测试 测试
</el-button> </el-button>
</el-form-item> </el-form-item>
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
prop="allsumvolumeTbShow" prop="allsumvolumeTbShow"
/> />
<el-table-column label="海运拼柜" align="center" prop="sumvolume1" /> <el-table-column label="海运拼柜" align="center" prop="sumvolumeV1" />
<el-table-column label="海运占比" align="center" prop="seaZb" /> <el-table-column label="海运占比" align="center" prop="seaZb" />
<el-table-column <el-table-column
label="海运拼柜同比" label="海运拼柜同比"
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
prop="sumvolumeTbShow1" prop="sumvolumeTbShow1"
/> />
<el-table-column label="专线空运" align="center" prop="sumweight3" /> <el-table-column label="专线空运" align="center" prop="sumweightV3" />
<el-table-column label="空运占比" align="center" prop="airZb" /> <el-table-column label="空运占比" align="center" prop="airZb" />
<el-table-column <el-table-column
label="专线空运同比" label="专线空运同比"
...@@ -256,7 +256,12 @@ ...@@ -256,7 +256,12 @@
<el-table-column label="控货总V值" align="center" prop="khSumV" /> <el-table-column label="控货总V值" align="center" prop="khSumV" />
<el-table-column label="控货占比" align="center" prop="khSumZb" /> <el-table-column label="控货占比" align="center" prop="khSumZb" />
<el-table-column label="是否首次成交" align="center" prop="isFirst" /> <el-table-column label="是否首次成交" align="center" prop="isFirst" />
<el-table-column label="首次成交时间" align="center" prop="firstDate"> <el-table-column
label="首次成交时间"
align="center"
prop="firstDate"
width="200px"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.firstDate) }}</span> <span>{{ parseTime(scope.row.firstDate) }}</span>
</template> </template>
...@@ -266,7 +271,12 @@ ...@@ -266,7 +271,12 @@
<el-table-column label="客户来源" align="center" prop="sourcename" /> <el-table-column label="客户来源" align="center" prop="sourcename" />
<el-table-column label="客户角色" align="center" prop="customerrole" /> <el-table-column label="客户角色" align="center" prop="customerrole" />
<el-table-column label="客户国家" align="center" prop="country" /> <el-table-column label="客户国家" align="center" prop="country" />
<el-table-column label="客户户创建时间" align="center" prop="createtime"> <el-table-column
label="客户户创建时间"
align="center"
prop="createtime"
width="200px"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createtime) }}</span> <span>{{ parseTime(scope.row.createtime) }}</span>
</template> </template>
...@@ -291,7 +301,10 @@ import Treeselect from "@riophae/vue-treeselect"; ...@@ -291,7 +301,10 @@ import Treeselect from "@riophae/vue-treeselect";
import "@/assets/styles/vue-treeselect.css"; import "@/assets/styles/vue-treeselect.css";
import { listSimpleDepts } from "@/api/system/dept"; import { listSimpleDepts } from "@/api/system/dept";
import { getListPage, exportExcel } from "@/api/report/customeranalysis"; import { getListPage, exportExcel } from "@/api/report/customeranalysis";
import { getCurUserPermission } from "@/api/report/EcwReportPermission"; import {
getCurUserPermission,
getDeptChild,
} from "@/api/report/EcwReportPermission";
import { MessageBox } from "element-ui"; import { MessageBox } from "element-ui";
function currentTime2() { function currentTime2() {
...@@ -423,8 +436,8 @@ export default { ...@@ -423,8 +436,8 @@ export default {
first: undefined, //是否首次成交 first: undefined, //是否首次成交
cusYjType: undefined, //客户业绩类型,新客户还是老客户 cusYjType: undefined, //客户业绩类型,新客户还是老客户
searchDataType1: undefined, //查询数据类型 searchDataType1: undefined, //查询数据类型
searchDataType2:undefined, searchDataType2: undefined,
searchDataType3:undefined, searchDataType3: undefined,
searchDateType: "createdate", //日期查询类型 searchDateType: "createdate", //日期查询类型
sdate: formatDate3(), sdate: formatDate3(),
edate: formatDate2(), //结束日期 edate: formatDate2(), //结束日期
...@@ -555,12 +568,19 @@ export default { ...@@ -555,12 +568,19 @@ export default {
}, },
/** 查询部门下拉树结构 + 岗位下拉 */ /** 查询部门下拉树结构 + 岗位下拉 */
getTreeselect() { getTreeselect() {
listSimpleDepts().then((response) => { listSimpleDepts().then((response) => {
// 处理 deptOptions 参数 // 处理 deptOptions 参数
this.deptOptions = []; this.deptOptions = [];
this.deptOptions.push(...this.handleTree(response.data, "id")); this.deptOptions.push(...this.handleTree(response.data, "id"));
}); });
/*
getDeptChild().then((response) => {
this.deptOptions = [];
this.deptOptions.push(...this.handleTree(response.data, "id"));
});*/
}, },
//格式化部门的下拉框 //格式化部门的下拉框
normalizer(node) { normalizer(node) {
...@@ -579,7 +599,11 @@ export default { ...@@ -579,7 +599,11 @@ export default {
return strDate; return strDate;
}, },
test() { test() {
//对象的拷贝 let json1 = JSON.stringify(this.deptOptions);
alert(json1);
return;
//对象的拷贝 lanbm 2024-04-19 add
let target = {}; let target = {};
let source = { c: 3 }; let source = { c: 3 };
Object.assign(target, source); Object.assign(target, source);
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['my:test:create']" v-hasPermi="['report:vz:create']"
>新增</el-button >新增</el-button
> >
</el-col> </el-col>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['my:test:update']" v-hasPermi="['report:vz:update']"
>修改</el-button >修改</el-button
> >
<el-button <el-button
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['my:test:delete']" v-hasPermi="['report:vz:delete']"
>删除</el-button >删除</el-button
> >
</template> </template>
......
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