|
|
@ -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) { |
|
|
|