Commit 13c9a02d authored by lanbaoming's avatar lanbaoming

2024-06-25-01

parent aba4e54b
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- 搜索工作栏 -->
<el-form <el-form
:model="queryParams" :model="queryParams"
ref="queryForm" ref="queryForm"
...@@ -1349,7 +1348,6 @@ export default { ...@@ -1349,7 +1348,6 @@ export default {
//destCountryId:'', //destCountryId:'',
objectiveId: [], objectiveId: [],
destWarehouseId: "", destWarehouseId: "",
// 选中数组 // 选中数组
ids: [], ids: [],
//目的国 //目的国
......
This diff is collapsed.
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
v-model="queryParams.deptid" v-model="queryParams.deptid"
:options="deptOptions" :options="deptOptions"
:show-count="true" :show-count="true"
:multiple="true"
:placeholder="$t('请选择部门')" :placeholder="$t('请选择部门')"
:normalizer="normalizer" :normalizer="normalizer"
/> />
...@@ -280,7 +281,7 @@ ...@@ -280,7 +281,7 @@
> >
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list" @sort-change="handleSort">
<el-table-column label="排名" align="center" prop="px" /> <el-table-column label="排名" align="center" prop="px" />
<el-table-column label="客户编号" align="center" prop="number"> <el-table-column label="客户编号" align="center" prop="number">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
...@@ -294,14 +295,24 @@ ...@@ -294,14 +295,24 @@
<el-table-column label="客户姓名" align="center" prop="name" /> <el-table-column label="客户姓名" align="center" prop="name" />
<el-table-column label="客户经理" align="center" prop="salesman" /> <el-table-column label="客户经理" align="center" prop="salesman" />
<el-table-column label="部门" align="center" prop="deptname" /> <el-table-column label="部门" align="center" prop="deptname" />
<el-table-column label="总V值" align="center" prop="allsumvolume" /> <el-table-column
label="总V值"
align="center"
prop="allsumvolume"
sortable="allsumvolume"
/>
<el-table-column <el-table-column
label="总V值同比" label="总V值同比"
align="center" align="center"
prop="allsumvolumeTbShow" prop="allsumvolumeTbShow"
/> />
<el-table-column label="海运拼柜" align="center" prop="sumvolumeV1" /> <el-table-column
label="海运拼柜"
align="center"
prop="sumvolumeV1"
sortable="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="海运拼柜同比"
...@@ -309,7 +320,12 @@ ...@@ -309,7 +320,12 @@
prop="sumvolumeTbShow1" prop="sumvolumeTbShow1"
/> />
<el-table-column label="专线空运" align="center" prop="sumweightV3" /> <el-table-column
label="专线空运"
align="center"
prop="sumweightV3"
sortable="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="专线空运同比"
...@@ -530,6 +546,8 @@ export default { ...@@ -530,6 +546,8 @@ export default {
edate4: undefined, //客户创建时间 edate4: undefined, //客户创建时间
sdate5: undefined, //首次成交时间 sdate5: undefined, //首次成交时间
edate5: undefined, //首次成交时间 edate5: undefined, //首次成交时间
orderfield:undefined,//排序字段
ordertype:undefined,//排序方式
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -567,6 +585,13 @@ export default { ...@@ -567,6 +585,13 @@ export default {
//created ------> computed ------> mounted ------> watch //created ------> computed ------> mounted ------> watch
}, },
methods: { methods: {
handleSort(obj) {
if (obj.order != null && obj.prop != null) {
this.queryParams.orderfield=obj.prop; //排序字段
this.queryParams.ordertype=obj.order; //排序方式
this.getList();
}
},
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
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