|
|
@ -106,6 +106,57 @@ |
|
|
|
<collectionmeasuresAdd v-show="viewState == 3" ref="divCollection" @doback="resetState" @reloadlist="getList"/> |
|
|
|
<!-- 查看车辆历史催收记录 --> |
|
|
|
<vehiclecollectionrecords v-show="viewState == 4" ref="divRecords" @doback="resetState"/> |
|
|
|
<!-- 维护还款操作人 --> |
|
|
|
<el-dialog title="录入实际还款人" :visible.sync="dialogVisible" width="70%"> |
|
|
|
<el-form ref="form_obj" :model="formobj" class="formadd"> |
|
|
|
<el-row style="border-top: 1px solid #e0e3eb"> |
|
|
|
<el-col :span="5" class="tleftb"> |
|
|
|
<span>车架号</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7"> |
|
|
|
<el-form-item><span>{{ formobj.vinNo }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" class="tleftb"> |
|
|
|
<span>车牌号</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7"> |
|
|
|
<el-form-item><span>{{ formobj.carNum }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="5" class="tleftb"> |
|
|
|
<span>客户名称</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7"> |
|
|
|
<el-form-item><span>{{ formobj.custName }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" class="tleftb"> |
|
|
|
<span>贷款人</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7"> |
|
|
|
<el-form-item><span>{{ formobj.borrerName }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="5" class="tleftb"> |
|
|
|
<span>实际还款人名称</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7"> |
|
|
|
<el-form-item><el-input v-model="formobj.reaRepaymentName" clearable placeholder="" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" class="tleftb"> |
|
|
|
<span>实际还款人电话</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7"> |
|
|
|
<el-form-item><el-input v-model="formobj.reaRepaymentPhone" clearable placeholder="" /></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="handleSave()">保存</el-button> |
|
|
|
<el-button size="small" @click="dialogVisible = false">关闭</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -131,7 +182,15 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
btndisabled: false, |
|
|
|
dialogVisible: false, |
|
|
|
btnList: [ |
|
|
|
{ |
|
|
|
type: 'primary', |
|
|
|
size: 'small', |
|
|
|
icon: '', |
|
|
|
btnKey: 'toMaintain', |
|
|
|
btnLabel: '维护还款操作人' |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'primary', |
|
|
|
size: 'small', |
|
|
@ -204,6 +263,15 @@ export default { |
|
|
|
collectionStartDate: '', |
|
|
|
collectionEndDate: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
formobj: { |
|
|
|
borrerName: '', |
|
|
|
carNum: '', |
|
|
|
custName: '', |
|
|
|
reaRepaymentName: '', |
|
|
|
reaRepaymentPhone: '', |
|
|
|
saleVehSid: '', |
|
|
|
vinNo: '' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -227,6 +295,9 @@ export default { |
|
|
|
btnHandle(btnKey) { |
|
|
|
console.log('XXXXXXXXXXXXXXX ' + btnKey) |
|
|
|
switch (btnKey) { |
|
|
|
case 'toMaintain': |
|
|
|
this.toMaintain() |
|
|
|
break |
|
|
|
case 'toCollection': |
|
|
|
this.toCollection() |
|
|
|
break |
|
|
@ -304,6 +375,40 @@ export default { |
|
|
|
this.viewState = 4 |
|
|
|
this.$refs['divRecords'].showInfo(row) |
|
|
|
}, |
|
|
|
toMaintain() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
this.dialogVisible = true |
|
|
|
this.formobj = { |
|
|
|
borrerName: '', |
|
|
|
carNum: '', |
|
|
|
custName: '', |
|
|
|
reaRepaymentName: '', |
|
|
|
reaRepaymentPhone: '', |
|
|
|
saleVehSid: '', |
|
|
|
vinNo: '' |
|
|
|
} |
|
|
|
req.initReaRepayment({ saleVehSid: this.sids[0] }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.formobj = resp.data |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSave() { |
|
|
|
if (this.formobj.reaRepaymentName === '' || this.formobj.reaRepaymentPhone === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '实际还款人名称和电话不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
req.maintReaRepayment(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
|
this.dialogVisible = false |
|
|
|
this.getList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
toCollection() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
this.viewState = 2 |
|
|
|