Commit 599c95a9 by Wuyuqiu

调整部分公共表格金额显示

parent cbb5b43a
......@@ -202,9 +202,21 @@
</el-table-column>
<el-table-column prop="cur" label="币种" width="70px">
</el-table-column>
<el-table-column prop="oldamt" label="余额" width="150px">
<el-table-column prop="oldamt" label="余额" width="110px">
<template slot-scope="scope">
<c-input-currency
v-model="scope.row.oldamt"
placeholder="0.00"
></c-input-currency>
</template>
</el-table-column>
<el-table-column prop="amt" label="变动金额" width="150px">
<el-table-column prop="amt" label="变动金额" width="110px">
<template slot-scope="scope">
<c-input-currency
v-model="scope.row.amt"
placeholder="0.00"
></c-input-currency>
</template>
</el-table-column>
<el-table-column prop="acc" label="保证金账号" width="180px">
</el-table-column>
......@@ -212,9 +224,21 @@
</el-table-column>
<el-table-column prop="concur" label="币种" width="70px">
</el-table-column>
<el-table-column prop="covamt" label="折算后金额" width="150px">
<el-table-column prop="covamt" label="折算后金额" width="110px">
<template slot-scope="scope">
<c-input-currency
v-model="scope.row.covamt"
placeholder="0.00"
></c-input-currency>
</template>
</el-table-column>
<el-table-column prop="acccovamt" label="实际折算金额" width="150px">
<template slot-scope="scope">
<c-input-currency
v-model="scope.row.acccovamt"
placeholder="0.00"
></c-input-currency>
</template>
</el-table-column>
<el-table-column label="操作" width="auto" fixed="right" align="center">
<template slot-scope="scope">
......
......@@ -116,7 +116,7 @@
</c-input>
</template>
</el-table-column>
<el-table-column label="" width="auto">
<el-table-column label="" width="110px">
<template slot-scope="scope">
<el-form-item
label-width="0"
......
......@@ -56,19 +56,31 @@
</el-table-column>
<el-table-column prop="cur" label="币种" width="70px">
</el-table-column>
<el-table-column prop="oldamt" label="原始金额" width="150px">
<el-table-column prop="oldamt" label="原始金额" width="110px">
<!-- <template slot-scope="scope">
{{moneyFormat(scope.row.oldamt)}}
</template> -->
<template slot-scope="scope">
<c-input-currency
v-model="scope.row.docamt"
placeholder="0.00"
></c-input-currency>
</template>
</el-table-column>
<el-table-column prop="amt" label="记账金额" width="150px">
<el-table-column prop="amt" label="记账金额" width="110px">
<!-- <template slot-scope="scope">
{{moneyFormat(scope.row.amt)}}
</template> -->
<template slot-scope="scope">
<c-input-currency
v-model="scope.row.amt"
placeholder="0.00"
></c-input-currency>
</template>
</el-table-column>
<el-table-column prop="tenpct" label="%" width="70px">
</el-table-column>
<el-table-column prop="acc" label="核心账号" width="170px">
<el-table-column prop="acc" label="核心账号" width="200px">
<!-- check,需用el-form-item标签包起来 -->
<template slot-scope="scope">
<el-form-item
......@@ -85,7 +97,7 @@
</el-form-item>
</template>
</el-table-column>
<el-table-column prop="valdat" label="起息日" width="auto">
<el-table-column prop="valdat" label="起息日" width="150px">
<template slot-scope="scope">
{{ dateFormat(scope.row.valdat) }}
</template>
......
......@@ -186,12 +186,17 @@
</c-select>
</template>
</el-table-column>
<el-table-column label="金额" prop="amt" width="auto">
<el-table-column label="金额" prop="amt" width="110px">
<template slot-scope="scope">
<el-form-item
label-width="0"
:prop="'setmod.setfog.setfol.' + scope.$index + '.amt'"
></el-form-item>
>
<c-input-currency
v-model="scope.row.amt"
placeholder="0.00"
></c-input-currency>
</el-form-item>
</template>
</el-table-column>
<el-table-column label="" prop="det" width="150px" fixed="right">
......@@ -390,15 +395,24 @@
</el-form-item>
</template>
</el-table-column>
<el-table-column label="应收金额" prop="ogiamt" width="150px">
<el-table-column label="应收金额" prop="ogiamt" width="110px">
<template slot-scope="scope">
<c-input-currency
v-model="scope.row.ogiamt"
placeholder="0.00"
></c-input-currency>
</template>
</el-table-column>
<el-table-column label="实收金额" prop="amt" width="auto">
<el-table-column label="实收金额" prop="amt" width="110px">
<template slot-scope="scope">
<el-form-item
label-width="0"
:prop="'setmod.setfeg.setfel.' + scope.$index + '.amt'"
>
{{ scope.row.amt }}
<c-input-currency
v-model="scope.row.amt"
placeholder="0.00"
></c-input-currency>
</el-form-item>
</template>
</el-table-column>
......@@ -461,7 +475,10 @@
</el-table-column>
<el-table-column label="即收币种" prop="acccur" width="110px">
<template slot-scope="scope">
<c-select v-model="scope.row.acccur" @change="accucrChange(scope.$index)">
<c-select
v-model="scope.row.acccur"
@change="accucrChange(scope.$index)"
>
<!-- @change="eventfunction('setgll.accur')" -->
<el-option
v-for="item in codes.acccur"
......@@ -474,12 +491,17 @@
</c-select>
</template>
</el-table-column>
<el-table-column label="记账金额" prop="fmtaccamt" width="150px">
<el-table-column label="记账金额" prop="fmtaccamt" width="110px">
<template slot-scope="scope">
<c-input
<!-- <c-input
v-model="scope.row.fmtaccamt"
@change="fmtaccamtChange(scope.$index)"
/>
/> -->
<c-input-currency
v-model="scope.row.fmtaccamt"
placeholder="0.00"
@change="fmtaccamtChange(scope.$index)"
></c-input-currency>
</template>
</el-table-column>
<el-table-column label="处理方式" width="110px">
......@@ -521,7 +543,13 @@
</el-table-column>
<el-table-column label="原始币种" prop="cur" width="70px">
</el-table-column>
<el-table-column label="原始金额" prop="fmtamt" width="150px">
<el-table-column label="原始金额" prop="fmtamt" width="110px">
<template slot-scope="scope">
<c-input-currency
v-model="scope.row.fmtamt"
placeholder="0.00"
></c-input-currency>
</template>
</el-table-column>
<el-table-column label="汇率" prop="rat" width="auto">
</el-table-column>
......@@ -1473,19 +1501,19 @@ export default {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
async accucrChange(index){
async accucrChange(index) {
let rtnmsg = await this.executeRule(
"setmod.setglg.setgll(" + (index + 1) + ").acccur"
);
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.$nextTick(()=>{
this.$nextTick(() => {
this.executeRule("setmod.glemod.glepan").then((res) => {
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data)
})
})
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data);
});
});
}
},
async fmtaccamtChange(index) {
......@@ -1495,27 +1523,27 @@ export default {
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.$nextTick(()=>{
this.$nextTick(() => {
this.executeRule("setmod.glemod.glepan").then((res) => {
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data)
})
})
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data);
});
});
}
},
async dspChange(index){
async dspChange(index) {
let rtnmsg = await this.executeDefault(
"setmod.setglg.setgll(" + (index + 1) + ").dsp"
);
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.$nextTick(()=>{
this.$nextTick(() => {
this.executeRule("setmod.glemod.glepan").then((res) => {
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data)
})
})
//TODO 处理数据逻辑
if (res.respCode == SUCCESS) this.updateModel(res.data);
});
});
}
},
},
......
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