|
@@ -83,7 +83,10 @@ const formData = ref<ProductSpuApi.Spu>({
|
|
weight: 0, // 商品重量
|
|
weight: 0, // 商品重量
|
|
volume: 0, // 商品体积
|
|
volume: 0, // 商品体积
|
|
firstBrokeragePrice: 0, // 一级分销的佣金
|
|
firstBrokeragePrice: 0, // 一级分销的佣金
|
|
- secondBrokeragePrice: 0 // 二级分销的佣金
|
|
|
|
|
|
+ secondBrokeragePrice: 0, // 二级分销的佣金
|
|
|
|
+ agentPrice: 0, // 业代价格
|
|
|
|
+ minBargain: 0, // 最小议价区间
|
|
|
|
+ maxBargain: 0
|
|
}
|
|
}
|
|
],
|
|
],
|
|
description: '', // 商品详情
|
|
description: '', // 商品详情
|
|
@@ -113,6 +116,9 @@ const getDetail = async () => {
|
|
item.price = floatToFixed2(item.price)
|
|
item.price = floatToFixed2(item.price)
|
|
item.marketPrice = floatToFixed2(item.marketPrice)
|
|
item.marketPrice = floatToFixed2(item.marketPrice)
|
|
item.costPrice = floatToFixed2(item.costPrice)
|
|
item.costPrice = floatToFixed2(item.costPrice)
|
|
|
|
+ item.agentPrice = floatToFixed2(item.agentPrice)
|
|
|
|
+ item.minBargain = floatToFixed2(item.minBargain)
|
|
|
|
+ item.maxBargain = floatToFixed2(item.maxBargain)
|
|
item.firstBrokeragePrice = floatToFixed2(item.firstBrokeragePrice)
|
|
item.firstBrokeragePrice = floatToFixed2(item.firstBrokeragePrice)
|
|
item.secondBrokeragePrice = floatToFixed2(item.secondBrokeragePrice)
|
|
item.secondBrokeragePrice = floatToFixed2(item.secondBrokeragePrice)
|
|
} else {
|
|
} else {
|
|
@@ -120,6 +126,9 @@ const getDetail = async () => {
|
|
item.price = formatToFraction(item.price)
|
|
item.price = formatToFraction(item.price)
|
|
item.marketPrice = formatToFraction(item.marketPrice)
|
|
item.marketPrice = formatToFraction(item.marketPrice)
|
|
item.costPrice = formatToFraction(item.costPrice)
|
|
item.costPrice = formatToFraction(item.costPrice)
|
|
|
|
+ item.agentPrice = formatToFraction(item.agentPrice)
|
|
|
|
+ item.minBargain = formatToFraction(item.minBargain)
|
|
|
|
+ item.maxBargain = formatToFraction(item.maxBargain)
|
|
item.firstBrokeragePrice = formatToFraction(item.firstBrokeragePrice)
|
|
item.firstBrokeragePrice = formatToFraction(item.firstBrokeragePrice)
|
|
item.secondBrokeragePrice = formatToFraction(item.secondBrokeragePrice)
|
|
item.secondBrokeragePrice = formatToFraction(item.secondBrokeragePrice)
|
|
}
|
|
}
|
|
@@ -149,6 +158,9 @@ const submitForm = async () => {
|
|
// sku相关价格元转分
|
|
// sku相关价格元转分
|
|
item.price = convertToInteger(item.price)
|
|
item.price = convertToInteger(item.price)
|
|
item.marketPrice = convertToInteger(item.marketPrice)
|
|
item.marketPrice = convertToInteger(item.marketPrice)
|
|
|
|
+ item.agentPrice = convertToInteger(item.agentPrice)
|
|
|
|
+ item.minBargain = convertToInteger(item.minBargain)
|
|
|
|
+ item.maxBargain = convertToInteger(item.maxBargain)
|
|
item.costPrice = convertToInteger(item.costPrice)
|
|
item.costPrice = convertToInteger(item.costPrice)
|
|
item.firstBrokeragePrice = convertToInteger(item.firstBrokeragePrice)
|
|
item.firstBrokeragePrice = convertToInteger(item.firstBrokeragePrice)
|
|
item.secondBrokeragePrice = convertToInteger(item.secondBrokeragePrice)
|
|
item.secondBrokeragePrice = convertToInteger(item.secondBrokeragePrice)
|