Explorar el Código

收款条件设置调整

qymljy hace 1 año
padre
commit
3c599202d7
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/HDrpManagement/collectionRule/index.vue

+ 3 - 1
src/HDrpManagement/collectionRule/index.vue

@@ -29,7 +29,7 @@
                 small
                 small
                 @size-change="handleSizeChange"
                 @size-change="handleSizeChange"
                 @current-change="handleCurrentChange"
                 @current-change="handleCurrentChange"
-                :current-page="params.content.pageNumber"
+                :current-page="currentPage"
                 :page-size="params.content.pageSize"
                 :page-size="params.content.pageSize"
                 layout="total, prev, pager, next, jumper"
                 layout="total, prev, pager, next, jumper"
                 :total="total">
                 :total="total">
@@ -61,6 +61,7 @@ export default {
         }
         }
       },
       },
       total:0,
       total:0,
+      currentPage:0,
       list:[],
       list:[],
       layout:[
       layout:[
         {title:'收款条件编码',columnname:'ruleno'},
         {title:'收款条件编码',columnname:'ruleno'},
@@ -85,6 +86,7 @@ export default {
       const res = await this.$api.requested(this.params)
       const res = await this.$api.requested(this.params)
       this.list = res.data
       this.list = res.data
       this.total = res.total
       this.total = res.total
+      this.currentPage = res.pageNumber
       this.list.forEach(item=>{
       this.list.forEach(item=>{
         if (item.accountingnodes){
         if (item.accountingnodes){
           item.accountingnodes.ordercheck.amountrate = Math.round((item.accountingnodes.ordercheck.amountrate * 100)*100)/100
           item.accountingnodes.ordercheck.amountrate = Math.round((item.accountingnodes.ordercheck.amountrate * 100)*100)/100