|
|
@ -107,7 +107,7 @@ |
|
|
|
<!-- 导入 --> |
|
|
|
<el-dialog :visible.sync="dialogVisible" width="60%" :show-close="false"> |
|
|
|
<div> |
|
|
|
<el-button size="small" type="text" style="font-weight: bold" @click="downLoad">下载当月还款记录模板</el-button> |
|
|
|
<el-button size="small" type="text" style="font-weight: bold" @click="downLoad">下载还款记录模板</el-button> |
|
|
|
</div> |
|
|
|
<el-card class="box-card"> |
|
|
|
<div> |
|
|
@ -195,15 +195,15 @@ export default { |
|
|
|
type: 'primary', |
|
|
|
size: 'small', |
|
|
|
icon: '', |
|
|
|
btnKey: 'toDeduct', |
|
|
|
btnLabel: '划扣' |
|
|
|
btnKey: 'toUpdate', |
|
|
|
btnLabel: '更新' |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'primary', |
|
|
|
size: 'small', |
|
|
|
icon: '', |
|
|
|
btnKey: 'toUpdate', |
|
|
|
btnLabel: '更新' |
|
|
|
btnKey: 'toDeduct', |
|
|
|
btnLabel: '划扣' |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'danger', |
|
|
@ -226,6 +226,7 @@ export default { |
|
|
|
tableKey: 0, |
|
|
|
list: [], |
|
|
|
sids: [], // 用于导出的时候保存已选择的SIDs |
|
|
|
multipleSelection: [], |
|
|
|
returnWay_list: [], |
|
|
|
buckle_list: [ |
|
|
|
{ |
|
|
@ -327,6 +328,7 @@ export default { |
|
|
|
// 信息条数 获取点击时当前的sid |
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
|
this.multipleSelection = row |
|
|
|
row.forEach(element => { |
|
|
|
aa.push(element.sid) |
|
|
|
}) |
|
|
@ -408,7 +410,7 @@ export default { |
|
|
|
const blob = new Blob([resp], { |
|
|
|
type: 'application/vnd.ms-excel' |
|
|
|
}) |
|
|
|
const fileName = '当月还款记录模板' + '.xls' |
|
|
|
const fileName = '还款记录模板' + '.xls' |
|
|
|
const elink = document.createElement('a') |
|
|
|
elink.download = fileName |
|
|
|
elink.style.display = 'nonde' |
|
|
@ -436,7 +438,7 @@ export default { |
|
|
|
}, |
|
|
|
handleConfirm() { |
|
|
|
if (this.upload_list.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请先上传当月还款记录' }) |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请先上传还款记录' }) |
|
|
|
return |
|
|
|
} |
|
|
|
req.saveRecords(this.upload_list).then((res) => { |
|
|
@ -501,8 +503,12 @@ export default { |
|
|
|
// 调整 |
|
|
|
toEdit(row) { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divAdd'].showEdit(this.sids[0]) |
|
|
|
if (this.multipleSelection[0].updateTime === '') { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divAdd'].showEdit(this.sids[0]) |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '该记录已生成更新日期,无需进行调整操作' }) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑操作' }) |
|
|
|
} |
|
|
|