|
|
@@ -24,6 +24,7 @@
|
|
|
<el-table
|
|
|
border
|
|
|
:data="enterpriseContact.listData"
|
|
|
+ height="200px"
|
|
|
@row-click="enterpriseContactSelect"
|
|
|
:header-cell-style="{background:'#EEEEEE',color:'#333'}"
|
|
|
size="mini">
|
|
|
@@ -81,6 +82,7 @@
|
|
|
@current-change="handleCurrentChangeEnterprise"
|
|
|
:current-page="enterpriseContact.currentPage"
|
|
|
:page-sizes="[20, 50, 100, 200]"
|
|
|
+ :page-size="20"
|
|
|
layout="total,sizes, prev, pager, next, jumper"
|
|
|
:total="enterpriseContact.total">
|
|
|
</el-pagination>
|
|
|
@@ -93,6 +95,7 @@
|
|
|
border
|
|
|
:data="myContacts.listData"
|
|
|
@row-click="myContactSelect"
|
|
|
+ height="200px"
|
|
|
:header-cell-style="{background:'#EEEEEE',color:'#333'}"
|
|
|
size="mini">
|
|
|
<el-table-column width="80" label="姓名">
|
|
|
@@ -146,6 +149,7 @@
|
|
|
@current-change="handleCurrentChangeMy"
|
|
|
:current-page="myContacts.currentPage"
|
|
|
:page-sizes="[20, 50, 100, 200]"
|
|
|
+ :page-size="20"
|
|
|
layout="total,sizes, prev, pager, next, jumper"
|
|
|
:total="myContacts.total">
|
|
|
</el-pagination>
|
|
|
@@ -217,13 +221,14 @@
|
|
|
v-model="associatedCustomers.show"
|
|
|
trigger="click">
|
|
|
<el-tabs type="border-card" @tab-click="changeTabCustomers">
|
|
|
- <el-tab-pane label="关联客户">
|
|
|
+
|
|
|
<el-input style="width:200px;" placeholder="搜索" :suffix-icon="associatedCustomers.param.content.where.condition?associatedCustomers.param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="associatedCustomers.param.content.where.condition" @keyup.native.enter="associatedCustomersList(associatedCustomers.param.content.pageNumber = 1)" @clear="associatedCustomersList(associatedCustomers.param.content.pageNumber = 1)" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
|
|
|
</el-input>
|
|
|
<el-table
|
|
|
border
|
|
|
:data="associatedCustomers.listData"
|
|
|
style="margin-top: 10px"
|
|
|
+ height="200px"
|
|
|
@row-click="associatedCustomersSelect"
|
|
|
:header-cell-style="{background:'#EEEEEE',color:'#333'}"
|
|
|
size="mini">
|
|
|
@@ -251,51 +256,14 @@
|
|
|
@current-change="handleCurrentAssociatedCustomers"
|
|
|
:current-page="associatedCustomers.currentPage"
|
|
|
:page-sizes="[20, 50, 100, 200]"
|
|
|
+ :page-size="20"
|
|
|
layout="total,sizes, prev, pager, next, jumper"
|
|
|
:total="associatedCustomers.total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
<slot name="footerLeft"></slot>
|
|
|
</div>
|
|
|
- </el-tab-pane>
|
|
|
- <el-tab-pane label="我的客户" >
|
|
|
- <el-table
|
|
|
- border
|
|
|
- :data="myCustomers.listData"
|
|
|
- @row-click="myCustomersSelect"
|
|
|
- :header-cell-style="{background:'#EEEEEE',color:'#333'}"
|
|
|
- size="mini">
|
|
|
- <el-table-column width="80" label="单位编号">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span >{{ scope.row.sys_enterpriseid?scope.row.sys_enterpriseid:'--' }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column width="190" label="单位名称">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span >{{ scope.row.enterprisename?scope.row.enterprisename:'--' }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="单位地址">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span >{{ scope.row.address?scope.row.address:'--' }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <div style="display:flex;align-items:center;flex-direction:row-reverse;justify-content:space-between">
|
|
|
- <div class="container normal-panel" style="text-align:right">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- @size-change="handleSizeMyCustomers"
|
|
|
- @current-change="handleCurrentMyCustomers"
|
|
|
- :current-page="myCustomers.currentPage"
|
|
|
- :page-sizes="[20, 50, 100, 200]"
|
|
|
- layout="total,sizes, prev, pager, next, jumper"
|
|
|
- :total="myCustomers.total">
|
|
|
- </el-pagination>
|
|
|
- </div>
|
|
|
- <slot name="footerLeft"></slot>
|
|
|
- </div>
|
|
|
- </el-tab-pane>
|
|
|
+
|
|
|
</el-tabs>
|
|
|
<el-input slot="reference" :disabled="form.contactsid !== 0" autosize v-model="form.enterprisename" placeholder="请输入单位" @input="changeTabCustomers"></el-input>
|
|
|
</el-popover>
|
|
|
@@ -443,7 +411,7 @@ export default {
|
|
|
"content": {
|
|
|
"sa_projectid": '',
|
|
|
"pageNumber": 1,
|
|
|
- "pageSize": 10,
|
|
|
+ "pageSize": 20,
|
|
|
"where": {
|
|
|
"condition": ""
|
|
|
}
|
|
|
@@ -647,13 +615,13 @@ export default {
|
|
|
},
|
|
|
handleSizeChangeMy(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
- this.enterpriseContact.param.content.pageSize = val
|
|
|
- this.enterpriseContactList()
|
|
|
+ this.myContacts.param.content.pageSize = val
|
|
|
+ this.myContactList()
|
|
|
},
|
|
|
handleCurrentChangeMy(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
- this.enterpriseContact.param.content.pageNumber = val
|
|
|
- this.enterpriseContactList()
|
|
|
+ this.myContacts.param.content.pageNumber = val
|
|
|
+ this.myContactList()
|
|
|
},
|
|
|
/*关联客户*/
|
|
|
async associatedCustomersList(){
|