|
|
@@ -8,7 +8,7 @@
|
|
|
<span style="font-size: 16px;color: #333">{{$t(`新增联系人`)}}</span>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <exportFile class="inline-16" :param="param" :columns="tablecolsAdd" file-name="新增联系人"></exportFile>
|
|
|
+ <exportFile class="inline-16" :param="paramAdd" :columns="tablecolsAdd" file-name="新增联系人"></exportFile>
|
|
|
<quickDate class="inline-16" ref="quickAdd" @selectQuick="selectQuickAdd" :disabled="disabled"></quickDate>
|
|
|
<fullScreen ref="addFullRef" class="inline-16" domId="contactAddFull" @onFull="onFull('新增')" @backFull="backFull('新增')"></fullScreen>
|
|
|
</div>
|
|
|
@@ -48,7 +48,7 @@
|
|
|
<span style="font-size: 16px;color: #333">{{$t(`更新联系人`)}}</span>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <exportFile class="inline-16" :param="param" :columns="tablecolsUpdate" file-name="更新联系人"></exportFile>
|
|
|
+ <exportFile class="inline-16" :param="paramUpdate" :columns="tablecolsUpdate" file-name="更新联系人"></exportFile>
|
|
|
<quickDate class="inline-16" ref="quickUpd" @selectQuick="selectQuickUpd"></quickDate>
|
|
|
<fullScreen ref="updFullRef" class="inline-16" domId="contactUpdFull" @onFull="onFull('更新')" @backFull="backFull('更新')"></fullScreen>
|
|
|
</div>
|
|
|
@@ -77,7 +77,7 @@
|
|
|
<span style="font-size: 16px;color: #333">{{$t(`跟进联系人`)}}</span>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <exportFile class="inline-16" :param="param" :columns="tablecolsFollow" file-name="跟进联系人"></exportFile>
|
|
|
+ <exportFile class="inline-16" :param="paramFollow" :columns="tablecolsFollow" file-name="跟进联系人"></exportFile>
|
|
|
<quickDate class="inline-16" ref="quickFow" @selectQuick="selectQuickFow" :disabled="disabled"></quickDate>
|
|
|
<fullScreen ref="fowFullRef" class="inline-16" domId="contactFowFull" @onFull="onFull('跟进')" @backFull="backFull('跟进')"></fullScreen>
|
|
|
</div>
|
|
|
@@ -162,12 +162,61 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
isFull:false,
|
|
|
- disabled:false
|
|
|
+ disabled:false,
|
|
|
+ paramAdd:{
|
|
|
+ "id": 20230617143104,
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 10,
|
|
|
+ "dataType":"",//1 线索新增列表 2 线索更新列表 3 线索跟进列表4 客户新增列表 5 客户更新列表 6 客户跟进列表 7 项目新增列表8 项目更新列表 9 项目跟进列表 10 报价单列表 11 合同列表 12 联系人新增 13 联系人更进 14 联系人更新
|
|
|
+ "type":'',//0 按人搜素 1 按部门搜索
|
|
|
+ "dataid":"",// 人员id或部门id
|
|
|
+ "dateType":'',
|
|
|
+ "where":{
|
|
|
+ "begindate":"",
|
|
|
+ "enddate":"",
|
|
|
+ "isleave":"1"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ paramUpdate:{
|
|
|
+ "id": 20230617143104,
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 10,
|
|
|
+ "dataType":"",//1 线索新增列表 2 线索更新列表 3 线索跟进列表4 客户新增列表 5 客户更新列表 6 客户跟进列表 7 项目新增列表8 项目更新列表 9 项目跟进列表 10 报价单列表 11 合同列表 12 联系人新增 13 联系人更进 14 联系人更新
|
|
|
+ "type":'',//0 按人搜素 1 按部门搜索
|
|
|
+ "dataid":"",// 人员id或部门id
|
|
|
+ "dateType":'',
|
|
|
+ "where":{
|
|
|
+ "begindate":"",
|
|
|
+ "enddate":"",
|
|
|
+ "isleave":"1"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ paramFollow:{
|
|
|
+ "id": 20230617143104,
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 10,
|
|
|
+ "dataType":"",//1 线索新增列表 2 线索更新列表 3 线索跟进列表4 客户新增列表 5 客户更新列表 6 客户跟进列表 7 项目新增列表8 项目更新列表 9 项目跟进列表 10 报价单列表 11 合同列表 12 联系人新增 13 联系人更进 14 联系人更新
|
|
|
+ "type":'',//0 按人搜素 1 按部门搜索
|
|
|
+ "dataid":"",// 人员id或部门id
|
|
|
+ "dateType":'',
|
|
|
+ "where":{
|
|
|
+ "begindate":"",
|
|
|
+ "enddate":"",
|
|
|
+ "isleave":"1"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
async queryAdd(type){
|
|
|
this.$refs.quickAdd.select = type?type:this.selectAdd
|
|
|
+
|
|
|
this.param.content.dataType = 12
|
|
|
this.param.content.where.begindate = this.selectAdd ? '' :this.begindate
|
|
|
this.param.content.where.enddate = this.selectAdd ? '' : this.enddate
|
|
|
@@ -175,6 +224,15 @@ export default {
|
|
|
this.param.content.dataid = this.dataid
|
|
|
this.param.content.type = this.isDep?1:0
|
|
|
this.param.content.sort = [this.sort[0]]
|
|
|
+
|
|
|
+ this.paramAdd.content.dataType = 12
|
|
|
+ this.paramAdd.content.where.begindate = this.selectAdd ? '' :this.begindate
|
|
|
+ this.paramAdd.content.where.enddate = this.selectAdd ? '' : this.enddate
|
|
|
+ this.paramAdd.content.dateType = type?type:this.selectAdd
|
|
|
+ this.paramAdd.content.dataid = this.dataid
|
|
|
+ this.paramAdd.content.type = this.isDep?1:0
|
|
|
+ this.paramAdd.content.sort = [this.sort[0]]
|
|
|
+
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listAdd = res.data
|
|
|
this.currentPageAdd = res.pageNumber
|
|
|
@@ -192,6 +250,7 @@ export default {
|
|
|
},
|
|
|
async queryUpdate(type){
|
|
|
this.$refs.quickUpd.select = type?type:this.selectUpd
|
|
|
+
|
|
|
this.param.content.dataType = 14
|
|
|
this.param.content.where.begindate = this.selectUpd ? '' :this.begindate
|
|
|
this.param.content.where.enddate = this.selectUpd ? '' : this.enddate
|
|
|
@@ -199,6 +258,15 @@ export default {
|
|
|
this.param.content.dataid = this.dataid
|
|
|
this.param.content.type = this.isDep?1:0
|
|
|
this.param.content.sort = [this.sort[0]]
|
|
|
+
|
|
|
+ this.paramUpdate.content.dataType = 14
|
|
|
+ this.paramUpdate.content.where.begindate = this.selectUpd ? '' :this.begindate
|
|
|
+ this.paramUpdate.content.where.enddate = this.selectUpd ? '' : this.enddate
|
|
|
+ this.paramUpdate.content.dateType = type?type:this.selectUpd
|
|
|
+ this.paramUpdate.content.dataid = this.dataid
|
|
|
+ this.paramUpdate.content.type = this.isDep?1:0
|
|
|
+ this.paramUpdate.content.sort = [this.sort[0]]
|
|
|
+
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listUpdate = res.data
|
|
|
this.currentPageUpdate = res.pageNumber
|
|
|
@@ -216,6 +284,7 @@ export default {
|
|
|
},
|
|
|
async queryFollow(type){
|
|
|
this.$refs.quickFow.select = type?type:this.selectFow
|
|
|
+
|
|
|
this.param.content.dataType = 13
|
|
|
this.param.content.where.begindate = this.selectFow ? '' :this.begindate
|
|
|
this.param.content.where.enddate = this.selectFow ? '' : this.enddate
|
|
|
@@ -223,6 +292,15 @@ export default {
|
|
|
this.param.content.dataid = this.dataid
|
|
|
this.param.content.type = this.isDep?1:0
|
|
|
this.param.content.sort = [this.sort[1]]
|
|
|
+
|
|
|
+ this.paramFollow.content.dataType = 13
|
|
|
+ this.paramFollow.content.where.begindate = this.selectFow ? '' :this.begindate
|
|
|
+ this.paramFollow.content.where.enddate = this.selectFow ? '' : this.enddate
|
|
|
+ this.paramFollow.content.dateType = type?type:this.selectFow
|
|
|
+ this.paramFollow.content.dataid = this.dataid
|
|
|
+ this.paramFollow.content.type = this.isDep?1:0
|
|
|
+ this.paramFollow.content.sort = [this.sort[1]]
|
|
|
+
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listFollow = res.data
|
|
|
this.currentPageFollow = res.pageNumber
|