Commit bdd07d8e authored by 华国豪's avatar 华国豪 🙄
parents c4790fae 2f8f63a5
...@@ -1117,6 +1117,15 @@ export default { ...@@ -1117,6 +1117,15 @@ export default {
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true
}, },
{
field: "UnionTiCheng",
formatter: this.moneyFormat,
title: "联运提成",
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
},
{ {
field: "YingYeE", field: "YingYeE",
formatter: this.moneyFormat, formatter: this.moneyFormat,
...@@ -1538,6 +1547,8 @@ export default { ...@@ -1538,6 +1547,8 @@ export default {
if (field === "ShiJiLiRun") return this.priceFormat(rowData.ShiJiLiRun); if (field === "ShiJiLiRun") return this.priceFormat(rowData.ShiJiLiRun);
if (field === "TransportCost") if (field === "TransportCost")
return this.priceFormat(rowData.TransportCost); return this.priceFormat(rowData.TransportCost);
if (field === "UnionTiCheng")
return this.priceFormat(rowData.UnionTiCheng);
if (field === "YingYeE") return this.priceFormat(rowData.YingYeE); if (field === "YingYeE") return this.priceFormat(rowData.YingYeE);
if (field === "AverageIncome") if (field === "AverageIncome")
return this.priceFormat(rowData.AverageIncome); return this.priceFormat(rowData.AverageIncome);
......
...@@ -1284,6 +1284,15 @@ export default { ...@@ -1284,6 +1284,15 @@ export default {
columnAlign: "right", columnAlign: "right",
isResize: true isResize: true
}, },
{
field: "UnionTiCheng",
formatter: this.moneyFormat,
title: "联运提成",
width: 90,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{ {
field: "YingYeE", field: "YingYeE",
formatter: this.moneyFormat, formatter: this.moneyFormat,
...@@ -1577,6 +1586,7 @@ export default { ...@@ -1577,6 +1586,7 @@ export default {
"合肥", "合肥",
"南宁", "南宁",
"联运成本", "联运成本",
"联运提成",
"营业额", "营业额",
"GRP", "GRP",
"TKT", "TKT",
...@@ -1673,7 +1683,8 @@ export default { ...@@ -1673,7 +1683,8 @@ export default {
"BC", "BC",
"BD", "BD",
"BE", "BE",
"BF" "BF",
"BG"
]; ];
const ws = XLSX.utils.aoa_to_sheet(data); const ws = XLSX.utils.aoa_to_sheet(data);
ws["!cols"] = wscols; ws["!cols"] = wscols;
...@@ -1747,6 +1758,8 @@ export default { ...@@ -1747,6 +1758,8 @@ export default {
if (field === "ShiJiLiRun") return this.priceFormat(rowData.ShiJiLiRun); if (field === "ShiJiLiRun") return this.priceFormat(rowData.ShiJiLiRun);
if (field === "TransportCost") if (field === "TransportCost")
return this.priceFormat(rowData.TransportCost); return this.priceFormat(rowData.TransportCost);
if (field === "UnionTiCheng")
return this.priceFormat(rowData.UnionTiCheng);
if (field === "YingYeE") return this.priceFormat(rowData.YingYeE); if (field === "YingYeE") return this.priceFormat(rowData.YingYeE);
if (field === "AverageIncome") if (field === "AverageIncome")
return this.priceFormat(rowData.AverageIncome); return this.priceFormat(rowData.AverageIncome);
...@@ -1904,6 +1917,9 @@ export default { ...@@ -1904,6 +1917,9 @@ export default {
} }
if(rowData.TransportCost < 0 && columnName=="TransportCost"){ if(rowData.TransportCost < 0 && columnName=="TransportCost"){
return "column-cell-class-name-test-red" return "column-cell-class-name-test-red"
}
if(rowData.UnionTiCheng < 0 && columnName=="UnionTiCheng"){
return "column-cell-class-name-test-red"
} }
if(rowData.YingYeE < 0 && columnName=="YingYeE"){ if(rowData.YingYeE < 0 && columnName=="YingYeE"){
return "column-cell-class-name-test-red" return "column-cell-class-name-test-red"
......
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