master
曾嘉俊 3 years ago
parent 232b640c8a
commit df629d424f

Binary file not shown.

@ -173,11 +173,11 @@
<el-input class="form-input-wdith" v-focus v-else size="samll" oninput="this.value=this.value.replace(/\D/g,'')" pattern="[0-9]*" v-model="scope.row.amount" @change="(val)=>changeDeal(val,scope.$index)" @blur="(val)=>changeDeal(val,scope.$index)" ref="priceinput"></el-input> <el-input class="form-input-wdith" v-focus v-else size="samll" oninput="this.value=this.value.replace(/\D/g,'')" pattern="[0-9]*" v-model="scope.row.amount" @change="(val)=>changeDeal(val,scope.$index)" @blur="(val)=>changeDeal(val,scope.$index)" ref="priceinput"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip align="center" prop="debtMoney" label="待付金额" min-width="100"> <!-- <el-table-column show-overflow-tooltip align="center" prop="debtMoney" label="待付金额" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.debtMoney?scope.row.debtMoney:0}} {{scope.row.debtMoney?scope.row.debtMoney:0}}
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column show-overflow-tooltip align="center" label="充值卡付" min-width="120" v-if="sessionStorageData.refillCard"> <el-table-column show-overflow-tooltip align="center" label="充值卡付" min-width="120" v-if="sessionStorageData.refillCard">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
@ -219,10 +219,15 @@
{{ scope.row.nowAmount.toFixed(2)*1 }} {{ scope.row.nowAmount.toFixed(2)*1 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip align="center" label="欠款金额" min-width="100"> <!-- <el-table-column show-overflow-tooltip align="center" label="欠款金额" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.debtAmount.toFixed(2)*1 }} {{ scope.row.debtAmount.toFixed(2)*1 }}
</template> </template>
</el-table-column> -->
<el-table-column show-overflow-tooltip align="center" prop="debtMoney" label="欠款金额" min-width="100">
<template slot-scope="scope">
{{scope.row.debtMoney?scope.row.debtMoney:0}}
</template>
</el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip align="center" label="实付金额" min-width="100"> <el-table-column show-overflow-tooltip align="center" label="实付金额" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
@ -651,7 +656,7 @@ export default {
amountType(){ amountType(){
return function(type){ return function(type){
// 1 2 3 4 // 1 2 3 4
let num = type==1?eval(this.list.map(item=>{return item.amount?item.amount*1:0}).join("+")):(type==2?eval(this.list.map(item=>{return this.selectTabAmount(item.rechargeAccountList,2)?this.selectTabAmount(item.rechargeAccountList,2):0}).join("+")):(type==3?eval(this.payLists.map(item=>{return item.payMoney*1}).join("+")):eval(this.list.map(item=>{return item.debtAmount?item.debtAmount*1:0}).join("+")))) let num = type==1?eval(this.list.map(item=>{return item.amount?item.amount*1:0}).join("+")):(type==2?eval(this.list.map(item=>{return this.selectTabAmount(item.rechargeAccountList,2)?this.selectTabAmount(item.rechargeAccountList,2):0}).join("+")):(type==3?eval(this.payLists.map(item=>{return item.payMoney*1}).join("+")):eval(this.list.map(item=>{return item.debtMoney?item.debtMoney*1:0}).join("+"))))
return num?num.toFixed(2)*1:0 return num?num.toFixed(2)*1:0
} }
}, },

Loading…
Cancel
Save