Browse Source

完善资方划扣还款明细

master
yunuo970428 1 year ago
parent
commit
77f5cbfdb5
  1. 7
      anrui-riskcenter-ui/src/api/monthlypayment/monthlypayment.js
  2. 73
      anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue

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

@ -25,6 +25,13 @@ export default {
params: data
})
},
noImportUpdate: function(data) {
return request({
url: '/riskcenter/v1/loanrepaymenthistory/noImportUpdate',
method: 'post',
params: data
})
},
deleteBySids: function(data) {
return request({
url: '/riskcenter/v1/loanrepaymenthistory/deleteBySids',

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

@ -142,6 +142,25 @@
<el-button size="small" @click="dialogVisible = false">取消</el-button>
</div>
</el-dialog>
<!-- 非导入数据更新选择资方 -->
<el-dialog :visible.sync="bankVisible" width="50%" :show-close="false">
<el-form class="formaddcopy02">
<el-row>
<el-col :span="24">
<div class="span-sty">资方</div>
<el-form-item>
<el-select class="addinputInfo" v-model="bankSid" placeholder="请选择" clearable filterable>
<el-option v-for="item in bankShort_list" :key="item.sid" :label="item.name" :value="item.sid"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer" style="text-align: center">
<el-button type="primary" size="small" @click="bankConfirm">确定</el-button>
<el-button size="small" @click="bankVisible = false">取消</el-button>
</div>
</el-dialog>
</div>
</template>
@ -150,7 +169,7 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/monthlypayment/monthlypayment'
import { typeValues, getButtonPermissions } from '@/api/Common/dictcommons'
import {typeValues, getButtonPermissions, selectListByOrgPath} from '@/api/Common/dictcommons'
import adjust from './adjust'
import deductAdd from '../deduct/deductAdd'
@ -165,6 +184,9 @@ export default {
},
data() {
return {
bankVisible: false,
bankSid: '',
bankShort_list: [],
btndisabled: false,
dialogVisible: false,
updateAction: process.env.VUE_APP_BASE_API + '/riskcenter/v1/loanrepaymenthistory/getExcelInfo',
@ -192,6 +214,13 @@ export default {
btnKey: 'toEdit',
btnLabel: '调整'
},
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'toNotByUpdate',
btnLabel: '非导入数据更新'
},
{
type: 'primary',
size: 'small',
@ -303,6 +332,11 @@ export default {
this.returnWay_list = resp.data
}
})
selectListByOrgPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.bankShort_list = res.data
}
})
},
//
clicksearchShow() {
@ -325,6 +359,9 @@ export default {
case 'toDeduct':
this.toDeduct()
break
case 'toNotByUpdate':
this.toNotByUpdate()
break
case 'toUpdate':
this.toUpdate()
break
@ -488,6 +525,40 @@ export default {
this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行划扣操作' })
}
},
toNotByUpdate() {
this.bankVisible = true
this.bankSid = ''
},
//
bankConfirm() {
if (this.bankSid === '') {
this.$message({ showClose: true, type: 'error', message: '请选择资方' })
return
}
const tip = '资方无还款记录时,人工设置更新日期,是否更新?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.noImportUpdate({ bankSid: this.bankSid, orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.bankVisible = false
this.$message({ type: 'success', message: resp.msg, showClose: true })
}
loading.close()
}).catch(e => {
loading.close()
})
}).catch(() => {
})
},
//
toUpdate() {
if (this.list.length > 0) {

Loading…
Cancel
Save