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