Commit ebb08fd2 authored by lanbaoming's avatar lanbaoming

204-05-06处理问题点

parent 1ac89f50
...@@ -19,3 +19,12 @@ export function exportExcel(data) { ...@@ -19,3 +19,12 @@ export function exportExcel(data) {
responseType: 'blob' responseType: 'blob'
}) })
} }
export function exportExcel2(data) {
return request({
url: '/Report/CustomerAnalysis/exportExcel2',
method: 'get',
params: data,
responseType: 'blob'
})
}
...@@ -18,3 +18,13 @@ export function exportExcel(query) { ...@@ -18,3 +18,13 @@ export function exportExcel(query) {
responseType: 'blob' responseType: 'blob'
}) })
} }
//获取统计汇总数据 lanbm 2024-05-04 add
export function getStatisticalSummary(query) {
return request({
url: '/Report/SalesAnalysis/getStatisticalSummary',
method: 'get',
params: query
})
}
...@@ -49,3 +49,12 @@ export function exportExcel(query) { ...@@ -49,3 +49,12 @@ export function exportExcel(query) {
responseType: 'blob' responseType: 'blob'
}) })
} }
//测试功能
export function test(query) {
return request({
url: '/ecwVz/vz/Test',
method: 'get',
params: query
})
}
...@@ -133,7 +133,8 @@ ...@@ -133,7 +133,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="price" :label="$t('金额')" align="center"></el-table-column> <el-table-column prop="price" :label="$t('金额')" align="center"></el-table-column>
<el-table-column prop="payPrice" :label="$t('实付金额')" align="center"></el-table-column> <el-table-column prop="payPrice" :label="$t('实付金额')" align="center"></el-table-column>
<el-table-column prop="payTime" :label="$t('实付日期')" align="center"> <el-table-column prop="payTime" :label="$t('创建日期')" align="center">
<!--实付日期 改为 创建日期 lanbm 2024-05-06 add-->
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.payTime">{{formatDate(scope.row.payTime)}}</span> <span v-if="scope.row.payTime">{{formatDate(scope.row.payTime)}}</span>
</template> </template>
......
...@@ -376,7 +376,8 @@ ...@@ -376,7 +376,8 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('期望收款汇率')" align="center"> <el-table-column :label="$t('期望收款汇率')" align="center">
<template slot-scope="scope"> <!--lanbm 2024-05-06 汇率保留小数增加到6位,为了方便显示,加宽此列的显示-->
<template slot-scope="scope" style="width: 200px;">
<el-form-item <el-form-item
v-if="scope.row.type !== 'total'" v-if="scope.row.type !== 'total'"
label="" label=""
......
This diff is collapsed.
...@@ -221,32 +221,6 @@ export default { ...@@ -221,32 +221,6 @@ export default {
// 有修改中的不允许修改 // 有修改中的不允许修改
if (this.list.findIndex((item) => item.editMode) > -1) return false; if (this.list.findIndex((item) => item.editMode) > -1) return false;
return true; return true;
};
computed:{
isChinese() {
return this.$i18n.locale === "zh_CN";
},
feeList(){
return this.list.filter(item => item.status === 0)
},
// 正在编辑的费用申请
currentItem(){
return this.list.find(item => item.editMode)
},
// 是否修改模式
editMode(){
return !!this.currentItem
},
modifable(){
return (index) => {
// 审核中不允许修改
if(this.processInstanceId) return false
// 有未提交的不允许修改
if(this.feeList.length) return false
// 有修改中的不允许修改
if(this.list.findIndex(item => item.editMode) > -1) return false
return true
}
} }
}, },
}, },
......
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
size="mini" size="mini"
@click="handleExport" @click="handleExport"
:loading="exportLoading" :loading="exportLoading"
v-show="objEcwReportPermission.exportdataq == 1" v-show="false"
> >
{{ $t("导出") }}</el-button {{ $t("导出") }}</el-button
> >
...@@ -264,9 +264,9 @@ ...@@ -264,9 +264,9 @@
size="mini" size="mini"
@click="handleExport2" @click="handleExport2"
:loading="exportLoading" :loading="exportLoading"
v-show="false" v-show="objEcwReportPermission.exportdataq == 1"
> >
{{ $t("导出测试") }}</el-button {{ $t("导出") }}</el-button
> >
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -327,12 +327,24 @@ ...@@ -327,12 +327,24 @@
<el-table-column label="泡货占比" align="center" prop="phSumZb" /> <el-table-column label="泡货占比" align="center" prop="phSumZb" />
<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" /> <!--2024-05-06和张工确认这几个参数无取数逻辑,暂时隐藏-->
<el-table-column label="首次成交时间" align="center" prop="firstDate"> <el-table-column
label="是否首次成交"
v-show="false"
align="center"
prop="isFirst"
/>
<el-table-column
label="首次成交时间"
v-show="false"
align="center"
prop="firstDate"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.firstDate) }}</span> <span>{{ parseTime(scope.row.firstDate) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!--2024-05-06和张工确认这几个参数无取数逻辑,暂时隐藏-->
<el-table-column label="提货率" align="center" prop="thL" /> <el-table-column label="提货率" align="center" prop="thL" />
<el-table-column label="客户业绩类型" align="center" prop="cusYjType" /> <el-table-column label="客户业绩类型" align="center" prop="cusYjType" />
<el-table-column label="客户来源" align="center" prop="sourcename" /> <el-table-column label="客户来源" align="center" prop="sourcename" />
...@@ -367,7 +379,11 @@ import Treeselect from "@riophae/vue-treeselect"; ...@@ -367,7 +379,11 @@ 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,
exportExcel2,
} from "@/api/report/customeranalysis";
import { import {
getCurUserPermission, getCurUserPermission,
getDeptChild, getDeptChild,
...@@ -517,50 +533,20 @@ export default { ...@@ -517,50 +533,20 @@ export default {
getCountryListAll().then((r) => { getCountryListAll().then((r) => {
this.countryList = r.data; this.countryList = r.data;
}); });
this.doLoadData();
//获取当前用户报表权限 },
getCurUserPermission().then((response) => { watch: {
//复制对象 $route(to) {
Object.assign(this.objEcwReportPermission, response.data); //lanbm 2024-05-06 解决重新进入参数不刷新的问题
//this.objEcwReportPermission = response.data; if (this.$route.name == "客户分析") {
if (this.objEcwReportPermission.permissionFw == 1) { this.doLoadData();
//只能看自己的,不能选择部门和客户经理
this.showCustomsManage = false;
this.showDept = false;
}
//获取页面传参
let sSalesmanid = this.$route.query.salesmanid;
let sDeptid = this.$route.query.deptid;
let s = this.$route.query.sDate;
let e = this.$route.query.eDate;
let bd = this.$route.query.duibiYear;
//客户编号
let number = this.$route.query.number;
if (sSalesmanid != undefined && sSalesmanid != null) {
this.queryParams.salesmanid = parseInt(sSalesmanid);
}
if (sDeptid != undefined && sDeptid != null) {
this.queryParams.deptid = parseInt(sDeptid);
}
if (s != undefined && s != null) {
this.queryParams.sdate = s + "-01";
}
if (e != undefined && s != null) {
let lastDay = getLastDay(e + "-01");
this.queryParams.edate = e + "-" + lastDay;
}
if (bd != undefined && bd != null) {
this.queryParams.duibiYear = bd;
}
if (number != undefined && number != null) {
this.queryParams.searchtype = "eq";
this.queryParams.name = number;
} }
this.getTreeselect(); },
this.getList(); },
}); computed: {
//这几个函数的执行顺序
//created ------> computed ------> mounted ------> watch
}, },
computed: {},
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
...@@ -582,6 +568,49 @@ export default { ...@@ -582,6 +568,49 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
doLoadData() {
//获取当前用户报表权限
getCurUserPermission().then((response) => {
//复制对象
Object.assign(this.objEcwReportPermission, response.data);
//this.objEcwReportPermission = response.data;
if (this.objEcwReportPermission.permissionFw == 1) {
//只能看自己的,不能选择部门和客户经理
this.showCustomsManage = false;
this.showDept = false;
}
//获取页面传参
let sSalesmanid = this.$route.query.salesmanid;
let sDeptid = this.$route.query.deptid;
let s = this.$route.query.sDate;
let e = this.$route.query.eDate;
let bd = this.$route.query.duibiYear;
//客户编号
let number = this.$route.query.number;
if (sSalesmanid != undefined && sSalesmanid != null) {
this.queryParams.salesmanid = parseInt(sSalesmanid);
}
if (sDeptid != undefined && sDeptid != null) {
this.queryParams.deptid = parseInt(sDeptid);
}
if (s != undefined && s != null) {
this.queryParams.sdate = s + "-01";
}
if (e != undefined && s != null) {
let lastDay = getLastDay(e + "-01");
this.queryParams.edate = e + "-" + lastDay;
}
if (bd != undefined && bd != null) {
this.queryParams.duibiYear = bd;
}
if (number != undefined && number != null) {
this.queryParams.searchtype = "eq";
this.queryParams.name = number;
}
this.getTreeselect();
this.getList();
});
},
isChinese() { isChinese() {
//基础函数,判断系统显示语言是中文还是英文 //基础函数,判断系统显示语言是中文还是英文
return this.$i18n.locale === "zh_CN"; return this.$i18n.locale === "zh_CN";
...@@ -688,7 +717,7 @@ export default { ...@@ -688,7 +717,7 @@ export default {
.confirm("是否确认导出所有数据项?") .confirm("是否确认导出所有数据项?")
.then(() => { .then(() => {
this.exportLoading = true; this.exportLoading = true;
return exportExcel(this.queryParams); return exportExcel2(this.queryParams);
}) })
.then((response) => { .then((response) => {
//放入后台队列需要注释此行代码 //放入后台队列需要注释此行代码
......
This diff is collapsed.
...@@ -59,6 +59,17 @@ ...@@ -59,6 +59,17 @@
{{ $t("导出") }}</el-button {{ $t("导出") }}</el-button
> >
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus" v-show="false"
size="mini"
@click="TestFun"
>
{{ $t("测试功能") }}</el-button
>
</el-col>
<right-toolbar <right-toolbar
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
...@@ -149,6 +160,7 @@ import { ...@@ -149,6 +160,7 @@ import {
getModel, getModel,
getPageList, getPageList,
exportExcel, exportExcel,
test,
} from "@/api/report/vz"; } from "@/api/report/vz";
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@/assets/styles/vue-treeselect.css"; import "@/assets/styles/vue-treeselect.css";
...@@ -305,7 +317,7 @@ export default { ...@@ -305,7 +317,7 @@ export default {
if (!valid) { if (!valid) {
return; return;
} }
// 修改的提交 // 修改的提交
if (this.form.id != null) { if (this.form.id != null) {
update(this.form).then((response) => { update(this.form).then((response) => {
...@@ -337,6 +349,11 @@ export default { ...@@ -337,6 +349,11 @@ export default {
}) })
.catch(() => {}); .catch(() => {});
}, },
TestFun() {
test().then((response) => {
this.$modal.msgSuccess("测试发送");
});
},
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
// 处理查询参数 // 处理查询参数
......
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