Browse Source

完善待划扣还款记录

zhanglei
yunuo970428 2 years ago
parent
commit
9e4a05f5ef
  1. 8
      anrui-riskcenter-ui/src/api/monthlypayment/monthlypayment.js
  2. 33
      anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue

8
anrui-riskcenter-ui/src/api/monthlypayment/monthlypayment.js

@ -18,6 +18,14 @@ export default {
headers: { 'Content-Type': 'application/json' }
})
},
updateState: function(data) {
return request({
url: '/riskcenter/v1/loanrepaymenthistory/updateState',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
deleteBySids: function(data) {
return request({
url: '/riskcenter/v1/loanrepaymenthistory/deleteBySids',

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

@ -2,7 +2,7 @@
<div class="app-container">
<!--列表页面-->
<div v-show="viewState == 1">
<button-bar view-title="当月还款记录" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<button-bar view-title="待划扣还款记录" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<!--Start查询列表部分-->
<div class="main-content">
<div class="searchcon">
@ -64,7 +64,7 @@
</div>
<!--End查询列表部分-->
<div class="listtop">
<div class="tit">当月未申请划扣还款记录</div>
<div class="tit">待划扣月还记录列表</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<!--Start 主页面主要部分 -->
@ -86,6 +86,8 @@
<el-table-column prop="actualDate" label="实还日期" align="center" width="140"/>
<el-table-column prop="actualMoney" label="实还金额" align="center" width="140"/>
<el-table-column prop="dataTime" label="数据日期" align="center" width="140"/>
<el-table-column prop="dataTime" label="更新日期" align="center" width="120"/>
<el-table-column prop="dataTime" label="更新状态" align="center" width="120"/>
<el-table-column prop="buckle" label="划扣状态" align="center" width="140"/>
</el-table>
</div>
@ -194,6 +196,13 @@ export default {
btnKey: 'toDeduct',
btnLabel: '划扣'
},
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'toUpdate',
btnLabel: '更新'
},
{
type: 'danger',
size: 'small',
@ -300,6 +309,9 @@ export default {
case 'toDeduct':
this.toDeduct()
break
case 'toUpdate':
this.toUpdate()
break
case 'doDel':
this.doDel()
break
@ -434,12 +446,17 @@ export default {
},
//
toDeduct() {
if (this.sids.length > 0) {
this.viewState = 3
this.$refs['divDeduct'].showAdd(this.sids)
} else {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行划扣操作' })
}
this.viewState = 3
this.$refs['divDeduct'].showAdd()
},
//
toUpdate() {
req.updateState({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '更新成功' })
this.getList()
}
})
},
//
doDel() {

Loading…
Cancel
Save