|
@@ -17,7 +17,8 @@
|
|
|
<el-table-column label="快递包材费汇总" align="center" prop="deliveryMaterialsFeeSummary" width="130" />
|
|
|
<el-table-column label="包装人工费汇总" align="center" prop="packingLaborSummary" width="130" />
|
|
|
<el-table-column label="管理费汇总" align="center" prop="managementFeeSummary" width="130" />
|
|
|
- <el-table-column label="打样费" align="center" prop="proofingFeeSummary" width="100" />
|
|
|
+ <el-table-column label="打样费" align="center" prop="proofingFeeSummary" width="100" v-if="tabValues.tabsCard != 4" />
|
|
|
+ <el-table-column label="质检费" align="center" prop="checkFeeSummary" width="100" v-else />
|
|
|
<el-table-column label="小计" align="center" width="120">
|
|
|
<template #default="{ row }">
|
|
|
{{ moneyFormat(row.subtotal) }}
|
|
@@ -87,7 +88,7 @@ const labelList = ref({
|
|
|
7: "deliveryMaterialsFeeSummary",
|
|
|
8: "packingLaborSummary",
|
|
|
9: "managementFeeSummary",
|
|
|
- 10: "proofingFeeSummary",
|
|
|
+ 10: props.tabValues.tabsCard != 4 ? "proofingFeeSummary" : "checkFeeSummary",
|
|
|
11: "subtotal",
|
|
|
12: "total",
|
|
|
});
|
|
@@ -186,7 +187,12 @@ const getSummaries = ({ columns, data }) => {
|
|
|
return sums;
|
|
|
};
|
|
|
const getTotal = (label) => {
|
|
|
- let list = tableData.value.map((item) => item[label]);
|
|
|
+ let list = [];
|
|
|
+ if (props.tabValues.tabsCard === 4 && label === "proofingFeeSummary") {
|
|
|
+ list = tableData.value.map((item) => item["checkFeeSummary"]);
|
|
|
+ } else {
|
|
|
+ list = tableData.value.map((item) => item[label]);
|
|
|
+ }
|
|
|
return Number(Math.round(list.reduce((acc, curr) => acc + curr, 0) * 100) / 100);
|
|
|
};
|
|
|
const emit = defineEmits(["clickCancel"]);
|