Commit c11e2011 authored by 邓春圆's avatar 邓春圆

新增汇率页面调整

parent fece837c
...@@ -99,12 +99,12 @@ ...@@ -99,12 +99,12 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="汇率" prop="currencyRate"> <el-form-item label="汇率" prop="currencyRate">
<el-input v-model="form.currencyRate" placeholder="请输入汇率" /> <el-input-number class="el-input-number" :controls="false" v-model="form.currencyRate" placeholder="请输入汇率" />
<p v-if="!form.id" style="margin: 0;"> <p v-if="form.sourceCurrencyId && form.currencyRate && form.targetCurrencyCode" style="margin: 0;">
例子:1RMB = 0.138611USD 例子:1{{getCurrency(form.sourceCurrencyId, true)}} = {{ 1 * form.currencyRate}} {{getCurrency(form.targetCurrencyId, true)}}
</p> </p>
<p v-else style="margin: 0;"> <p v-else style="margin: 0;">
例子:1{{getCurrency(f.sourceCurrencyId, true)}} = {{ 1 * f.currencyRate}} {{getCurrency(f.targetCurrencyId, true)}} 例子:1RMB = 0.138611USD
</p> </p>
</el-form-item> </el-form-item>
<el-form-item label="备注"> <el-form-item label="备注">
...@@ -163,11 +163,6 @@ export default { ...@@ -163,11 +163,6 @@ export default {
}, },
data() { data() {
return { return {
f:{
"currencyRate": "",
"sourceCurrencyId":'' ,
"targetCurrencyId": '',
},
currencyList:[], currencyList:[],
allSimplList:[], allSimplList:[],
listLog:[], listLog:[],
...@@ -214,6 +209,9 @@ export default { ...@@ -214,6 +209,9 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
change(val){
console.log(val,'val')
},
handleLog(row){ handleLog(row){
this.openLog = true; this.openLog = true;
getExchangeRateLogList({ids:row.id}).then(r => { getExchangeRateLogList({ids:row.id}).then(r => {
...@@ -292,9 +290,6 @@ export default { ...@@ -292,9 +290,6 @@ export default {
const id = row.id; const id = row.id;
getExchangeRate(id).then(response => { getExchangeRate(id).then(response => {
this.form = response.data; this.form = response.data;
this.f.currencyRate = response.data.currencyRate
this.f.sourceCurrencyId = response.data.sourceCurrencyId
this.f.targetCurrencyId = response.data.targetCurrencyId
this.open = true; this.open = true;
this.title = "修改"; this.title = "修改";
}); });
...@@ -360,3 +355,10 @@ export default { ...@@ -360,3 +355,10 @@ export default {
} }
}; };
</script> </script>
<style lang="scss" scoped>
::v-deep.el-input-number{
.el-input__inner{
text-align: left;
}
}
</style>
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