|
@@ -279,11 +279,13 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "isPriceAdjustment", title: "调价类型" },
|
|
|
+ item: { key: "isPriceAdjustmentName", title: "调价类型" },
|
|
|
attr: {
|
|
|
- is: "el-select",
|
|
|
- dictName: "price_adjustment_type",
|
|
|
- disabled: true,
|
|
|
+ value: '无',
|
|
|
+ formatter: (prop) => {
|
|
|
+ const { priceDiffer } = prop;
|
|
|
+ return (prop.isPriceAdjustment = priceDiffer > 0 ? '涨价' : priceDiffer < 0 ? '降价' : '无');
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -452,6 +454,16 @@ 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');
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
];
|