Commit d00a94f7 authored by youjie's avatar youjie

no message

parent 2056f47a
...@@ -138,7 +138,9 @@ ...@@ -138,7 +138,9 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="本位币汇率" :prop="'CurrencyRate.'+ y +'.Rate'" <el-form-item label="本位币汇率" :prop="'CurrencyRate.'+ y +'.Rate'"
:rules="productCurrencyRate.Rate"> :rules="productCurrencyRate.Rate">
<el-input type="text" v-model="x.Rate" ><template slot="append">{{x.CurrencyName}}</template></el-input> <el-input type="Number" v-model="x.Rate">
<template slot="append" style="width: 100%;">{{x.CurrencyName}}</template>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -240,6 +242,12 @@ ...@@ -240,6 +242,12 @@
this.showVisible = true this.showVisible = true
}, },
submit(formName) { submit(formName) {
for(let i=0;i<this.addMsg.CurrencyRate.length;i++){
if(this.addMsg.CurrencyRate[i].Rate<=0){
this.Error('汇率须大于0')
return
}
}
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.apipost( this.apipost(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment