|
@@ -1,68 +1,76 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-scrollbar >
|
|
|
- <div style="margin: auto;max-height: 200px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <span style="font-size: 16px;color: #333">新增客户</span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="16">
|
|
|
- <quickDate @selectQuick="selectQuickAdd"></quickDate>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <tableLayout style="margin-top: 10px" :layout="tablecolsAdd" :data="listAdd" :opwidth="200" :width="true" :custom="true" :height="tableHeight">
|
|
|
- <template v-slot:customcol="scope">
|
|
|
- <p>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
- </template>
|
|
|
- </tableLayout>
|
|
|
- <div class="container normal-panel" style="text-align:right">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- @size-change="handleSizeChangeAdd"
|
|
|
- @current-change="handleCurrentChangeAdd"
|
|
|
- :current-page="currentPageAdd"
|
|
|
- :page-sizes="[10,20, 50, 100, 200]"
|
|
|
- :page-size="10"
|
|
|
- layout="total,sizes, prev, pager, next, jumper"
|
|
|
- :total="totalAdd">
|
|
|
- </el-pagination>
|
|
|
+ <el-scrollbar>
|
|
|
+ <div style="margin: auto;">
|
|
|
+ <div id="customerAddFull" style="background: #FFFFFF" :style="{padding:isFull ?'16px':0}">
|
|
|
+ <div style="display: flex;justify-content: space-between">
|
|
|
+ <div>
|
|
|
+ <span style="font-size: 16px;color: #333">新增客户</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <quickDate class="inline-16" ref="quickAdd" @selectQuick="selectQuickAdd" :disabled="disabled"></quickDate>
|
|
|
+ <fullScreen ref="addFullRef" class="inline-16" domId="customerAddFull" @onFull="onFull('新增')" @backFull="backFull('新增')"></fullScreen>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <tableLayout style="margin-top: 10px" :layout="tablecolsAdd" :data="listAdd" :opwidth="200" :width="true" :custom="true" :height="isFull ?'calc(100vh - 150px)':tableHeight">
|
|
|
+ <template v-slot:customcol="scope">
|
|
|
+ <p>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
+ </template>
|
|
|
+ </tableLayout>
|
|
|
+ <div class="container normal-panel" style="text-align:right">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ @size-change="handleSizeChangeAdd"
|
|
|
+ @current-change="handleCurrentChangeAdd"
|
|
|
+ :current-page="currentPageAdd"
|
|
|
+ :page-sizes="isFull ?[100,150, 200, 250]:[10,20, 50, 100, 200]"
|
|
|
+ :page-size="isFull ?100:10"
|
|
|
+ layout="total,sizes, prev, pager, next, jumper"
|
|
|
+ :total="totalAdd">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <span style="font-size: 16px;color: #333">更新客户</span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="16">
|
|
|
- <quickDate @selectQuick="selectQuickUpd"></quickDate>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <tableLayout style="margin-top: 10px" :layout="tablecolsUpdate" :data="listUpdate" :opwidth="200" :custom="true" :height="tableHeight">
|
|
|
- <template v-slot:customcol="scope">
|
|
|
- <p>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
- </template>
|
|
|
- </tableLayout>
|
|
|
- <div class="container normal-panel" style="text-align:right">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- @size-change="handleSizeChangeUpdate"
|
|
|
- @current-change="handleCurrentChangeUpdate"
|
|
|
- :current-page="currentPageUpdate"
|
|
|
- :page-sizes="[10,20, 50, 100, 200]"
|
|
|
- :page-size="10"
|
|
|
- layout="total,sizes, prev, pager, next, jumper"
|
|
|
- :total="totalUpdate">
|
|
|
- </el-pagination>
|
|
|
+ <div id="customerUpdFull" style="background: #FFFFFF" :style="{padding:isFull ?'16px':0}">
|
|
|
+ <div style="display: flex;justify-content: space-between">
|
|
|
+ <div>
|
|
|
+ <span style="font-size: 16px;color: #333">更新客户</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <quickDate class="inline-16" ref="quickUpd" @selectQuick="selectQuickUpd"></quickDate>
|
|
|
+ <fullScreen ref="updFullRef" class="inline-16" domId="customerUpdFull" @onFull="onFull('更新')" @backFull="backFull('更新')"></fullScreen>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <tableLayout style="margin-top: 10px" :layout="tablecolsUpdate" :data="listUpdate" :opwidth="200" :custom="true" :height="isFull ?'calc(100vh - 150px)':tableHeight">
|
|
|
+ <template v-slot:customcol="scope">
|
|
|
+ <p>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
+ </template>
|
|
|
+ </tableLayout>
|
|
|
+ <div class="container normal-panel" style="text-align:right">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ @size-change="handleSizeChangeUpdate"
|
|
|
+ @current-change="handleCurrentChangeUpdate"
|
|
|
+ :current-page="currentPageUpdate"
|
|
|
+ :page-sizes="isFull ?[100,150, 200, 250]:[10,20, 50, 100, 200]"
|
|
|
+ :page-size="isFull ?100:10"
|
|
|
+ layout="total,sizes, prev, pager, next, jumper"
|
|
|
+ :total="totalUpdate">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <span style="font-size: 16px;color: #333">跟进客户</span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="16">
|
|
|
- <quickDate @selectQuick="selectQuickFow"></quickDate>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <tableLayout style="margin-top: 10px" :layout="tablecolsFollow" :data="listFollow" :opwidth="200" :custom="true" :height="tableHeight">
|
|
|
- <template v-slot:customcol="scope">
|
|
|
- <p v-if="scope.column.columnname === 'followname'">
|
|
|
+ <div id="customerFowFull" style="background: #FFFFFF" :style="{padding:isFull ?'16px':0}">
|
|
|
+ <div style="display: flex;justify-content: space-between">
|
|
|
+ <div>
|
|
|
+ <span style="font-size: 16px;color: #333">跟进客户</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <quickDate class="inline-16" ref="quickFow" @selectQuick="selectQuickFow" :disabled="disabled"></quickDate>
|
|
|
+ <fullScreen ref="fowFullRef" class="inline-16" domId="customerFowFull" @onFull="onFull('跟进')" @backFull="backFull('跟进')"></fullScreen>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <tableLayout style="margin-top: 10px" :layout="tablecolsFollow" :data="listFollow" :opwidth="200" :custom="true" :height="isFull ?'calc(100vh - 150px)':tableHeight">
|
|
|
+ <template v-slot:customcol="scope">
|
|
|
+ <p v-if="scope.column.columnname === 'followname'">
|
|
|
<span v-if="scope.column.data.followname.length > 0">
|
|
|
<span v-for="(item,index) in scope.column.data.followname">
|
|
|
<span v-if="index === scope.column.data.followname.length -1">
|
|
@@ -73,25 +81,25 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
</span>
|
|
|
- <span v-else>--</span>
|
|
|
- </p>
|
|
|
- <p v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
- </template>
|
|
|
- </tableLayout>
|
|
|
- <div class="container normal-panel" style="text-align:right">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- @size-change="handleSizeChangeFollow"
|
|
|
- @current-change="handleCurrentChangeFollow"
|
|
|
- :current-page="currentPageFollow"
|
|
|
- :page-sizes="[10,20, 50, 100, 200]"
|
|
|
- :page-size="10"
|
|
|
- layout="total,sizes, prev, pager, next, jumper"
|
|
|
- :total="totalFollow">
|
|
|
- </el-pagination>
|
|
|
+ <span v-else>--</span>
|
|
|
+ </p>
|
|
|
+ <p v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
+ </template>
|
|
|
+ </tableLayout>
|
|
|
+ <div class="container normal-panel" style="text-align:right">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ @size-change="handleSizeChangeFollow"
|
|
|
+ @current-change="handleCurrentChangeFollow"
|
|
|
+ :current-page="currentPageFollow"
|
|
|
+ :page-sizes="isFull ?[100,150, 200, 250]:[10,20, 50, 100, 200]"
|
|
|
+ :page-size="isFull ?100:10"
|
|
|
+ layout="total,sizes, prev, pager, next, jumper"
|
|
|
+ :total="totalFollow">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -99,10 +107,11 @@
|
|
|
<script>
|
|
|
import quickDate from "@/HDrpManagement/dataanalysis/components/quickDate";
|
|
|
import tableLayout from '@/components/table/index9'
|
|
|
+import fullScreen from "@/views/salesData/components/fullScreen";
|
|
|
export default {
|
|
|
name: "customer",
|
|
|
props:['param','isDep','dataid','isPerson'],
|
|
|
- components:{quickDate,tableLayout},
|
|
|
+ components:{quickDate,tableLayout,fullScreen},
|
|
|
data() {
|
|
|
return {
|
|
|
listAdd:[],
|
|
@@ -120,7 +129,9 @@ export default {
|
|
|
totalFollow:0,
|
|
|
begindate:'',
|
|
|
enddate:'',
|
|
|
- select:'周',
|
|
|
+ selectAdd:'周',
|
|
|
+ selectUpd:'周',
|
|
|
+ selectFow:'周',
|
|
|
sort:[
|
|
|
{
|
|
|
reversed : 0,
|
|
@@ -134,15 +145,17 @@ export default {
|
|
|
sortid: 208,
|
|
|
sortname: "跟进排序"
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ isFull:false,
|
|
|
+ disabled:false
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
async queryAdd(){
|
|
|
this.param.content.dataType = 4
|
|
|
- this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
- this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
- this.param.content.dateType = this.select
|
|
|
+ this.param.content.where.begindate = this.selectAdd ? '' :this.begindate
|
|
|
+ this.param.content.where.enddate = this.selectAdd ? '' : this.enddate
|
|
|
+ this.param.content.dateType = this.selectAdd
|
|
|
this.param.content.sort = [this.sort[0]]
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listAdd = res.data
|
|
@@ -161,9 +174,9 @@ export default {
|
|
|
},
|
|
|
async queryUpdate(){
|
|
|
this.param.content.dataType = 5
|
|
|
- this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
- this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
- this.param.content.dateType = this.select
|
|
|
+ this.param.content.where.begindate = this.selectUpd ? '' :this.begindate
|
|
|
+ this.param.content.where.enddate = this.selectUpd ? '' : this.enddate
|
|
|
+ this.param.content.dateType = this.selectUpd
|
|
|
this.param.content.sort = [this.sort[0]]
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listUpdate = res.data
|
|
@@ -182,9 +195,9 @@ export default {
|
|
|
},
|
|
|
async queryFollow(){
|
|
|
this.param.content.dataType = 6
|
|
|
- this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
- this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
- this.param.content.dateType = this.select
|
|
|
+ this.param.content.where.begindate = this.selectFow ? '' :this.begindate
|
|
|
+ this.param.content.where.enddate = this.selectFow ? '' : this.enddate
|
|
|
+ this.param.content.dateType = this.selectFow
|
|
|
this.param.content.sort = [this.sort[1]]
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listFollow = res.data
|
|
@@ -205,20 +218,64 @@ export default {
|
|
|
selectQuickAdd(begindate,enddate,select){
|
|
|
this.begindate = begindate
|
|
|
this.enddate = enddate
|
|
|
- this.select = select
|
|
|
+ this.selectAdd = select
|
|
|
this.queryAdd(this.param.content.pageNumber = 1)
|
|
|
},
|
|
|
selectQuickUpd(begindate,enddate,select){
|
|
|
this.begindate = begindate
|
|
|
this.enddate = enddate
|
|
|
- this.select = select
|
|
|
+ this.selectUpd = select
|
|
|
this.queryUpdate(this.param.content.pageNumber = 1)
|
|
|
},
|
|
|
selectQuickFow(begindate,enddate,select){
|
|
|
this.begindate = begindate
|
|
|
this.enddate = enddate
|
|
|
- this.select = select
|
|
|
+ this.selectFow = select
|
|
|
this.queryFollow(this.param.content.pageNumber = 1)
|
|
|
+ },
|
|
|
+ onFull(type){
|
|
|
+ if (type == '新增'){
|
|
|
+ this.param.content.dataType = 4
|
|
|
+ this.param.content.pageNumber = 1
|
|
|
+ this.param.content.pageSize = 100
|
|
|
+ this.queryAdd()
|
|
|
+ this.isFull = true
|
|
|
+ }else if (type == '更新'){
|
|
|
+ this.param.content.dataType = 5
|
|
|
+ this.param.content.pageNumber = 1
|
|
|
+ this.param.content.pageSize = 100
|
|
|
+ this.queryUpdate()
|
|
|
+ this.isFull = true
|
|
|
+ }else if (type == '跟进'){
|
|
|
+ this.param.content.dataType = 6
|
|
|
+ this.param.content.pageNumber = 1
|
|
|
+ this.param.content.pageSize = 100
|
|
|
+ this.queryFollow()
|
|
|
+ this.isFull = true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ backFull(type){
|
|
|
+ if (type == '新增'){
|
|
|
+ this.param.content.dataType = 4
|
|
|
+ this.param.content.pageNumber = 1
|
|
|
+ this.param.content.pageSize = 10
|
|
|
+ this.queryAdd()
|
|
|
+ this.disabled = false
|
|
|
+ this.isFull = false
|
|
|
+ }else if (type == '更新'){
|
|
|
+ this.param.content.dataType = 5
|
|
|
+ this.param.content.pageNumber = 1
|
|
|
+ this.param.content.pageSize = 10
|
|
|
+ this.queryUpdate()
|
|
|
+ this.isFull = false
|
|
|
+ }else if (type == '跟进'){
|
|
|
+ this.param.content.dataType = 6
|
|
|
+ this.param.content.pageNumber = 1
|
|
|
+ this.param.content.pageSize = 10
|
|
|
+ this.queryFollow()
|
|
|
+ this.disabled = false
|
|
|
+ this.isFull = false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created() {
|