Commit 14f3cb60 by 李伟康

提交

1 parent 9b73fae7
...@@ -1159,7 +1159,7 @@ export default { ...@@ -1159,7 +1159,7 @@ export default {
relateStoreVisible: false, // 选择门店 relateStoreVisible: false, // 选择门店
limitPurchaseDisabled:false,//多商品禁用限购 limitPurchaseDisabled: false,//多商品禁用限购
selectedList: [], selectedList: [],
selectedProInfo: [], selectedProInfo: [],
...@@ -1971,7 +1971,8 @@ export default { ...@@ -1971,7 +1971,8 @@ export default {
{ {
label: '常态化模式', label: '常态化模式',
name: 'normalModel', name: 'normalModel',
addHtml: 'normalModel' addHtml: 'normalModel',
tips: '活动结束后是否作为常态化活动自动上架'
} }
], ],
//直播配置 //直播配置
...@@ -2644,18 +2645,19 @@ export default { ...@@ -2644,18 +2645,19 @@ export default {
.getActivityDetailApi({ id: this.routeInfo.id }) .getActivityDetailApi({ id: this.routeInfo.id })
.then(res => { .then(res => {
var info = res var info = res
/**商品 */
info.goodsList && info.goodsList.map(e => {
e.activityPrice = (e.activityPrice / 100).toFixed(2)
e.crowdFundingPrice = (e.crowdFundingPrice / 100).toFixed(2)
})
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.activityInfo = info this.activityInfo = info
this.$set(this.editForm, 'activityTime', [info.startTime, info.endTime]) this.$set(this.editForm, 'activityTime', [info.startTime, info.endTime])
//改 this.routeInfo.addOrEdit == 'edit' && this.getGoodInfo(info.goodsId) this.selectedProInfo = info.goodsList
if (info.activityPrice != null && info.goodsStock != null) { // if () {
this.editForm.activityPrice = (info.activityPrice / 100).toFixed(2) // this.editForm.activityPrice = (info.activityPrice / 100).toFixed(2)
this.editForm.goodsStock = info.goodsStock + '' // this.editForm.goodsStock = info.goodsStock + ''
} // }
if (info.crowdFundingPrice != null) {
// 改
this.editForm.crowdFundingPrice = (info.crowdFundingPrice / 100).toFixed(2)
}
// 预估销量 // 预估销量
if (info.predictVolume) { if (info.predictVolume) {
this.editForm.predictVolume = (info.predictVolume / 100).toFixed(2) this.editForm.predictVolume = (info.predictVolume / 100).toFixed(2)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!