|
@@ -258,6 +258,18 @@ export default function useColumns() {
|
|
|
disabled: true,
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
+ {
|
|
|
+ item: {
|
|
|
+ key: "recentlyPriceDate",
|
|
|
+ title: "最近价格日期",
|
|
|
+ },
|
|
|
+ attr: {
|
|
|
+ is: "el-date-picker",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
{
|
|
|
item: { key: "isApprovalFirst", title: "首次报批" },
|
|
|
attr: {
|
|
@@ -324,11 +336,7 @@ export default function useColumns() {
|
|
|
attr: {
|
|
|
formatter: (prop) => {
|
|
|
const { priceDiffer = 0, recentlyPrice = 0 } = prop;
|
|
|
- return (prop.increase = recentlyPrice
|
|
|
- ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(
|
|
|
- 2
|
|
|
- )
|
|
|
- : "0.00");
|
|
|
+ return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(2) : "0.00");
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -343,6 +351,15 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
+ item: { width: 100, key: "yPurchaseVolume", title: "预计年采购额" },
|
|
|
+ attr: {
|
|
|
+ formatter: (prop) => {
|
|
|
+ const { taxPrice = 0, yPurchaseQuantity = 0 } = prop;
|
|
|
+ return (prop.yPurchaseVolume = (Number(taxPrice) * Number(yPurchaseQuantity)).toFixed(2));
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
item: { width: 100, key: "yAffectedAmount", title: "预计年影响金额" },
|
|
|
attr: {
|
|
|
formatter: (prop) => {
|