Browse Source

完善还款计划表

zhanglei
yunuo970428 12 months ago
parent
commit
7455f40c5c
  1. 22
      anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue

22
anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue

@ -50,11 +50,11 @@
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange"> <el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/> <el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/> <el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column label="操作" width="130" align="center"> <!-- <el-table-column label="操作" width="130" align="center">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button> <!-- <el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column prop="builded" label="是否已生成还款计划表" align="center" width="200"/> <el-table-column prop="builded" label="是否已生成还款计划表" align="center" width="200"/>
<el-table-column prop="useOrgName" label="分公司" align="center" width="120"/> <el-table-column prop="useOrgName" label="分公司" align="center" width="120"/>
<el-table-column prop="orgName" label="销售部门" align="center" width="120"/> <el-table-column prop="orgName" label="销售部门" align="center" width="120"/>
@ -134,6 +134,7 @@ export default {
tableKey: 0, tableKey: 0,
list: [], list: [],
sids: [], sids: [],
state_list: [],
multipleSelection: [], multipleSelection: [],
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
@ -204,11 +205,14 @@ export default {
// sid // sid
handleSelectionChange(row) { handleSelectionChange(row) {
const aa = [] const aa = []
const bb = []
this.multipleSelection = row this.multipleSelection = row
row.forEach(element => { row.forEach(element => {
aa.push(element.salesOrderSid) aa.push(element.salesOrderSid)
bb.push(element.builded)
}) })
this.sids = aa this.sids = aa
this.state_list = bb
}, },
// //
@ -273,6 +277,14 @@ export default {
} }
}, },
downloadRepaymentPlan() { downloadRepaymentPlan() {
if (this.state_list.length > 0) {
for (var i = 0; i < this.state_list.length; i++) {
if (this.state_list[i] === '是') {
this.$message({ showClose: true, type: 'error', message: '请选择是否已生成还款计划表状态为否的记录进行操作' })
return
}
}
}
if (this.sids.length > 0) { if (this.sids.length > 0) {
req.createRepaymentVoucher(this.sids).then((res) => { req.createRepaymentVoucher(this.sids).then((res) => {
if (res.success) { if (res.success) {

Loading…
Cancel
Save