Commit 1371331a by 李伟康

修改众筹零售价&众筹活动选择商品过滤门店自建

1 parent cf3c9126
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
var params = { var params = {
goodsStatus: 1, goodsStatus: 1,
isActivityUsing: 1, isActivityUsing: 1,
goodsSources: [1, 3], goodsSources: multiple? [3] :[1, 3],//众筹活动不能取门店自建商品
pageNum: 1, pageNum: 1,
pageSize: 100000, pageSize: 100000,
deliveryType: 1, deliveryType: 1,
...@@ -193,6 +193,7 @@ export default { ...@@ -193,6 +193,7 @@ export default {
item.goodsStock = item.specificationDetailList[0].stock item.goodsStock = item.specificationDetailList[0].stock
} else { } else {
item.retailPrice = (item.retailPrice / 100).toFixed(2) item.retailPrice = (item.retailPrice / 100).toFixed(2)
console.log('item:',item.retailPrice)
item.minRatilPrice = item.retailPrice item.minRatilPrice = item.retailPrice
} }
}) })
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
/> />
<div class="goods-info"> <div class="goods-info">
<p>商品名称:{{selectedProInfo[index].goodsName}}</p> <p>商品名称:{{selectedProInfo[index].goodsName}}</p>
<p>零售价 {{ (selectedProInfo[index].retailPrice / 100).toFixed(2) }}元</p> <p>零售价 {{selectedProInfo[index].retailPrice}}元</p>
<p>商品库存 {{ selectedProInfo[index].goodsStock }}件</p> <p>商品库存 {{ selectedProInfo[index].goodsStock }}件</p>
</div> </div>
</div> </div>
...@@ -1589,7 +1589,7 @@ export default { ...@@ -1589,7 +1589,7 @@ export default {
if (value < +activityPrice) { if (value < +activityPrice) {
return callback(new Error('众筹价需要大于定金')) return callback(new Error('众筹价需要大于定金'))
} }
return value > +(selectedProInfo[index].retailPrice / 100).toFixed(2) ? callback(new Error('众筹价必须小于等于零售价')) : callback() return value > Number(selectedProInfo[index].retailPrice) ? callback(new Error('众筹价必须小于等于零售价')) : callback()
}, },
trigger: 'change' trigger: 'change'
} }
...@@ -1604,7 +1604,7 @@ export default { ...@@ -1604,7 +1604,7 @@ export default {
{ selectedProInfo } = this { selectedProInfo } = this
if (!crowdFundingPrice) return callback(new Error('请先填写众筹价')) if (!crowdFundingPrice) return callback(new Error('请先填写众筹价'))
if (value > Number(crowdFundingPrice)) return callback(new Error('定金不能大于众筹价格')) if (value > Number(crowdFundingPrice)) return callback(new Error('定金不能大于众筹价格'))
return value > +(selectedProInfo[index].retailPrice / 100).toFixed(2) ? callback(new Error('定金必须小于等于零售价')) : callback() return value > Number(selectedProInfo[index].retailPrice) ? callback(new Error('定金必须小于等于零售价')) : callback()
}, },
trigger: 'change' trigger: 'change'
} }
...@@ -2461,6 +2461,7 @@ export default { ...@@ -2461,6 +2461,7 @@ export default {
this.editForm.goodsList[index][target] = val < 0 ? 1 : val this.editForm.goodsList[index][target] = val < 0 ? 1 : val
}, },
handleSingleSelectConfirm (list) { handleSingleSelectConfirm (list) {
console.log(list)
let { editForm: { goodsList } } = this, let { editForm: { goodsList } } = this,
arr = [] arr = []
this.handleSingleSelectClose() this.handleSingleSelectClose()
...@@ -2805,7 +2806,7 @@ export default { ...@@ -2805,7 +2806,7 @@ export default {
selectedProInfo.push({ selectedProInfo.push({
id: e.goodsId, id: e.goodsId,
goodsImage: e.goodsImage, goodsImage: e.goodsImage,
retailPrice: e.originalPrice, retailPrice: (e.originalPrice / 100).toFixed(2),
goodsStock: e.goodsStock, goodsStock: e.goodsStock,
goodsName: e.goodsName goodsName: e.goodsName
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!