|
|
@ -66,11 +66,7 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty colSty">还款方式</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.returnWayKey" placeholder="请选择" clearable filterable @change="returnWayChange"> |
|
|
|
<el-option v-for="item in repaymentWay_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.returnWay }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
@ -118,11 +114,6 @@ export default { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
typeValues({ type: 'repaymentWay' }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.repaymentWay_list = resp.data |
|
|
|
} |
|
|
|
}) |
|
|
|
req.fetchBySid({ sid: sid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj = res.data |
|
|
@ -137,14 +128,6 @@ export default { |
|
|
|
e.target.value = parseFloat(e.target.value) |
|
|
|
} |
|
|
|
}, |
|
|
|
returnWayChange(value) { |
|
|
|
const choose = this.repaymentWay_list.filter((item) => item.dictKey === value) |
|
|
|
if (choose.length > 0 && choose !== null) { |
|
|
|
this.formobj.returnWay = choose[0].dictValue |
|
|
|
} else { |
|
|
|
this.formobj.returnWay = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
save() { |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|