|
@@ -275,13 +275,17 @@ export default function useColumns() {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- item: { key: "isPriceAdjustmentName", title: "调价类型" },
|
|
|
|
|
|
+ item: { key: "isPriceAdjustment", title: "调价类型" },
|
|
attr: {
|
|
attr: {
|
|
- value: '无',
|
|
|
|
- formatter: (prop) => {
|
|
|
|
- const { priceDiffer } = prop;
|
|
|
|
- return (prop.isPriceAdjustment = priceDiffer > 0 ? '涨价' : priceDiffer < 0 ? '降价' : '无');
|
|
|
|
- },
|
|
|
|
|
|
+ value: 'no',
|
|
|
|
+ is: "el-select",
|
|
|
|
+ dictName: "price_adjustment_type",
|
|
|
|
+ disabled: true,
|
|
|
|
+ // value: '无',
|
|
|
|
+ // formatter: (prop) => {
|
|
|
|
+ // const { priceDiffer } = prop;
|
|
|
|
+ // return (prop.isPriceAdjustment = priceDiffer > 0 ? '涨价' : priceDiffer < 0 ? '降价' : '无');
|
|
|
|
+ // },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -454,17 +458,17 @@ export default function useColumns() {
|
|
},
|
|
},
|
|
// { item: { key: "createByName", title: "创建人名称" }, attr: {} },
|
|
// { item: { key: "createByName", title: "创建人名称" }, attr: {} },
|
|
// { item: { key: "updateByName", 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');
|
|
|
|
- // },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // // 调价类型
|
|
|
|
+ // item: { key: "isPriceAdjustment", title: "", width: 10 },
|
|
|
|
+ // attr: {
|
|
|
|
+ // value: 'no',
|
|
|
|
+ // // formatter: (prop) => {
|
|
|
|
+ // // const { priceDiffer } = prop;
|
|
|
|
+ // // return (prop.isPriceAdjustment = priceDiffer > 0 ? 'up' : priceDiffer < 0 ? 'down' : 'no');
|
|
|
|
+ // // },
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
// 采购换算率隐藏
|
|
// 采购换算率隐藏
|
|
{
|
|
{
|
|
item: { key: "conversionRate", title: "采购换算率", required: true, width: 5 },
|
|
item: { key: "conversionRate", title: "采购换算率", required: true, width: 5 },
|