Browse Source

完善资方划扣还款明细

master
yunuo970428 1 year ago
parent
commit
ec90010f8a
  1. 27
      anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue

27
anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue

@ -57,6 +57,7 @@
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleAdjust">需调整</el-button>
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
@ -149,7 +150,7 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/monthlypayment/monthlypayment'
import { typeValues } from '@/api/Common/dictcommons'
import { typeValues, getButtonPermissions } from '@/api/Common/dictcommons'
import adjust from './adjust'
import deductAdd from '../deduct/deductAdd'
@ -271,7 +272,8 @@ export default {
borrowerName: '',
period: '',
returnWayKey: '',
buckleKey: ''
buckleKey: '',
change: '0'
}
}
}
@ -281,7 +283,18 @@ export default {
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: this.$route.path, type: 0 }).then((res) => {
if (res.success) {
for (var i = 0; i < res.data.length; i++) {
for (var k = 0; k < this.btnList.length; k++) {
if (res.data[i].buttonId === this.btnList[k].btnKey) {
this.btnList.splice(k, 1)
}
}
}
this.$refs['btnbar'].setButtonList(this.btnList)
}
})
},
methods: {
init() {
@ -357,6 +370,11 @@ export default {
}
})
},
handleAdjust() {
this.listQuery.current = 1
this.listQuery.params.change = '1'
this.getList()
},
//
handleFilter() {
this.listQuery.current = 1
@ -386,7 +404,8 @@ export default {
borrowerName: '',
period: '',
returnWayKey: '',
buckleKey: ''
buckleKey: '',
change: '0'
}
}
this.getList()

Loading…
Cancel
Save