|
@@ -214,35 +214,35 @@ export default function useColumns() {
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
- item: { width: 100, key: "increase", title: "涨幅" },
|
|
|
|
|
|
+ item: { width: 100, key: "increase", title: "涨幅(%)" },
|
|
attr: {
|
|
attr: {
|
|
formatter: (prop) => {
|
|
formatter: (prop) => {
|
|
const { priceDiffer = 0, recentlyPrice = 0 } = prop;
|
|
const { priceDiffer = 0, recentlyPrice = 0 } = prop;
|
|
- return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) + '%' : "0.0%");
|
|
|
|
|
|
+ return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) + '%' : "0%");
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
- item: { width: 100, key: "ypurchaseQuantity", title: "预计年采购量" },
|
|
|
|
|
|
+ item: { width: 100, key: "yPurchaseQuantity", title: "预计年采购量" },
|
|
attr: {
|
|
attr: {
|
|
// is: "el-computed-input-v2",
|
|
// is: "el-computed-input-v2",
|
|
formatter: (prop) => {
|
|
formatter: (prop) => {
|
|
- return prop.ypurchaseQuantity
|
|
|
|
|
|
+ return prop.yPurchaseQuantity
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- item: { width: 100, key: "ypurchaseVolume", title: "预计年采购额" },
|
|
|
|
|
|
+ item: { width: 100, key: "yPurchaseVolume", title: "预计年采购额" },
|
|
attr: {
|
|
attr: {
|
|
formatter: (prop) => {
|
|
formatter: (prop) => {
|
|
- const { taxPrice = 0, ypurchaseQuantity = 0 } = prop;
|
|
|
|
- return (prop.ypurchaseVolume = (Number(taxPrice) * Number(ypurchaseQuantity)).toFixed(2));
|
|
|
|
|
|
+ const { taxPrice = 0, yPurchaseQuantity = 0 } = prop;
|
|
|
|
+ return (prop.yPurchaseVolume = (Number(taxPrice) * Number(yPurchaseQuantity)).toFixed(2));
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- item: { width: 100, key: "yaffectedAmount", title: "预计年影响金额" },
|
|
|
|
|
|
+ item: { width: 100, key: "yAffectedAmount", title: "预计年影响金额" },
|
|
attr: {
|
|
attr: {
|
|
is: "el-computed-input-v2",
|
|
is: "el-computed-input-v2",
|
|
formatter: (prop) => {
|
|
formatter: (prop) => {
|