Browse Source

2023-10-23

codeMan 2 năm trước cách đây
mục cha
commit
255401bb29

+ 12 - 5
src/HDrpManagement/projectChange/modules/modules/contacts/components/add.vue

@@ -23,6 +23,7 @@
                     <el-tab-pane label="企业联系人">
                       <el-table
                           border
+                          height="200px"
                           :data="enterpriseContact.listData"
                           @row-click="enterpriseContactSelect"
                           :header-cell-style="{background:'#EEEEEE',color:'#333'}"
@@ -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>
@@ -222,6 +226,7 @@
                           border
                           :data="associatedCustomers.listData"
                           style="margin-top: 10px"
+                          height="200px"
                           @row-click="associatedCustomersSelect"
                           :header-cell-style="{background:'#EEEEEE',color:'#333'}"
                           size="mini">
@@ -249,6 +254,7 @@
                               @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>
@@ -403,7 +409,7 @@ export default {
           "content": {
             "sa_projectid": '',
             "pageNumber": 1,
-            "pageSize": 10,
+            "pageSize": 20,
             "where": {
               "condition": ""
             }
@@ -564,6 +570,7 @@ export default {
     async enterpriseContactList(){
       this.enterpriseContact.param.content.where.condition = this.form.name
       this.enterpriseContact.param.content.sa_projectid = this.data.sa_projectid
+      console.log(this.enterpriseContact.param.pageSize,'页数')
       const res = await this.$api.requested(this.enterpriseContact.param)
       this.enterpriseContact.listData = res.data
       this.enterpriseContact.total = res.total
@@ -603,13 +610,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(){

+ 13 - 45
src/HDrpManagement/projectChange/modules/modules/contacts/components/edit.vue

@@ -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(){