|
@@ -147,7 +147,7 @@ export default function useColumns() {
|
|
|
{ item: { key: "model", title: "型号" }, attr: {} },
|
|
|
{ item: { key: "manufacturerName", title: "生产厂家" }, attr: {} },
|
|
|
{
|
|
|
- item: { key: "unitName", title: "单位"},
|
|
|
+ item: { key: "unitName", title: "单位" },
|
|
|
attr: {
|
|
|
is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
@@ -201,10 +201,10 @@ export default function useColumns() {
|
|
|
{
|
|
|
item: { key: "price", title: "无税单价", required: true },
|
|
|
attr: {
|
|
|
- formatter: (prop) => {
|
|
|
- const { tax = 0, taxPrice = 0 } = prop;
|
|
|
- return (prop.price = iunitprice(tax, taxPrice));
|
|
|
- },
|
|
|
+ // formatter: (prop) => {
|
|
|
+ // const { tax = 0, taxPrice = 0 } = prop;
|
|
|
+ // return (prop.price = iunitprice(tax, taxPrice));
|
|
|
+ // },
|
|
|
},
|
|
|
},
|
|
|
// {
|
|
@@ -287,20 +287,20 @@ export default function useColumns() {
|
|
|
{
|
|
|
item: { width: 100, key: "priceDiffer", title: "单价差" },
|
|
|
attr: {
|
|
|
- formatter: (prop) => {
|
|
|
- const { taxPrice = 0, recentlyPrice = 0 } = prop;
|
|
|
- return (prop.priceDiffer = Number(recentlyPrice) !== 0 ? Number(taxPrice) - Number(recentlyPrice) : 0);
|
|
|
- },
|
|
|
+ // formatter: (prop) => {
|
|
|
+ // const { taxPrice = 0, recentlyPrice = 0 } = prop;
|
|
|
+ // return (prop.priceDiffer = Number(recentlyPrice) !== 0 ? Number(taxPrice) - Number(recentlyPrice) : 0);
|
|
|
+ // },
|
|
|
},
|
|
|
},
|
|
|
|
|
|
{
|
|
|
item: { width: 100, key: "increase", title: "涨幅(%)" },
|
|
|
attr: {
|
|
|
- formatter: (prop) => {
|
|
|
- const { priceDiffer = 0, recentlyPrice = 0 } = prop;
|
|
|
- return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) : 0);
|
|
|
- },
|
|
|
+ // formatter: (prop) => {
|
|
|
+ // const { priceDiffer = 0, recentlyPrice = 0 } = prop;
|
|
|
+ // return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) : 0);
|
|
|
+ // },
|
|
|
},
|
|
|
},
|
|
|
|
|
@@ -325,12 +325,12 @@ export default function useColumns() {
|
|
|
{
|
|
|
item: { width: 100, key: "yAffectedAmount", title: "预计年影响金额" },
|
|
|
attr: {
|
|
|
- formatter: (prop) => {
|
|
|
- const { priceDiffer = 0, yPurchaseQuantity = 0 } = prop;
|
|
|
- return (prop.yAffectedAmount = (
|
|
|
- Number(priceDiffer) * Number(yPurchaseQuantity)
|
|
|
- ));
|
|
|
- },
|
|
|
+ // formatter: (prop) => {
|
|
|
+ // const { priceDiffer = 0, yPurchaseQuantity = 0 } = prop;
|
|
|
+ // return (prop.yAffectedAmount = (
|
|
|
+ // Number(priceDiffer) * Number(yPurchaseQuantity)
|
|
|
+ // ));
|
|
|
+ // },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -455,13 +455,14 @@ export default function useColumns() {
|
|
|
// { item: { key: "createByName", title: "创建人名称" }, attr: {} },
|
|
|
// { item: { key: "updateByName", title: "更新人名称" }, attr: {} },
|
|
|
{
|
|
|
+ // 调价类型
|
|
|
item: { key: "isPriceAdjustment", title: "", width: 10 },
|
|
|
attr: {
|
|
|
value: 'no',
|
|
|
- formatter: (prop) => {
|
|
|
- const { priceDiffer } = prop;
|
|
|
- return (prop.isPriceAdjustment = priceDiffer > 0 ? 'up' : priceDiffer < 0 ? 'down' : 'no');
|
|
|
- },
|
|
|
+ // formatter: (prop) => {
|
|
|
+ // const { priceDiffer } = prop;
|
|
|
+ // return (prop.isPriceAdjustment = priceDiffer > 0 ? 'up' : priceDiffer < 0 ? 'down' : 'no');
|
|
|
+ // },
|
|
|
},
|
|
|
},
|
|
|
// 采购换算率隐藏
|