This commit is contained in:
parent
1381a6d478
commit
c4aabf6add
|
@ -1,9 +1,10 @@
|
|||
<template>
|
||||
<div class="calculation">
|
||||
<div>
|
||||
<div v-if="costVisible">
|
||||
<span style="font-weight: bold; padding: 0 10px">本页信息:</span>
|
||||
<span style="padding: 0 10px">总定价:{{ total_cost }}元</span>
|
||||
</div>
|
||||
<div v-else></div>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
@size-change="handleSizeChange"
|
||||
|
@ -24,6 +25,12 @@ import { add } from "./../utils/Decimal";
|
|||
export default {
|
||||
name:"erpTablePagination",
|
||||
props: {
|
||||
costVisible:{
|
||||
type: Boolean,
|
||||
default: () => {
|
||||
return false;
|
||||
},
|
||||
},
|
||||
currentPage4: {
|
||||
type: Number,
|
||||
},
|
||||
|
@ -48,7 +55,9 @@ export default {
|
|||
total_cost: function () {
|
||||
let priceNumber = 0;
|
||||
this.tableData.map((res, index) => {
|
||||
priceNumber = add(priceNumber, res.total_cost);
|
||||
if(res.total_cost){
|
||||
priceNumber = add(priceNumber, res.total_cost);
|
||||
}
|
||||
});
|
||||
return priceNumber.toFixed(2);
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "erp-element-ui",
|
||||
"version": "1.0.21",
|
||||
"version": "1.0.22",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue