Browse Source

完善资方划扣还款明细

master
yunuo970428 1 year ago
parent
commit
0e380f6fdf
  1. 26
      anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue

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

@ -122,8 +122,8 @@
:data="uploadData" :data="uploadData"
:headers="headers" :headers="headers"
> >
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<el-button style="margin-left: 10px;" size="small" type="primary" @click="downLoad">下载模板</el-button> <el-button style="margin-left: 10px;" size="small" type="primary" @click="downLoad">下载模板</el-button>
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传</el-button> <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传</el-button>
</el-upload> </el-upload>
</div> </div>
@ -446,17 +446,25 @@ export default {
}, },
// //
toDeduct() { toDeduct() {
this.viewState = 3 if (this.list.length > 0) {
this.$refs['divDeduct'].showAdd() this.viewState = 3
this.$refs['divDeduct'].showAdd()
} else {
this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行划扣操作' })
}
}, },
// //
toUpdate() { toUpdate() {
req.updateState({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { if (this.list.length > 0) {
if (res.success) { req.updateState({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
this.$message({ showClose: true, type: 'success', message: '更新成功' }) if (res.success) {
this.getList() this.$message({ showClose: true, type: 'success', message: '更新成功' })
} this.getList()
}) }
})
} else {
this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行更新操作' })
}
}, },
// //
doDel() { doDel() {

Loading…
Cancel
Save