|
|
|
@ -235,6 +235,16 @@ |
|
|
|
</div> |
|
|
|
</FormItem> |
|
|
|
</Col> |
|
|
|
<Col span="8"> |
|
|
|
<FormItem label="设置加料" class="form-noheight"> |
|
|
|
<div> |
|
|
|
<div style="line-height: 37px;"> |
|
|
|
<input type="radio" :checked="addGoodsForm.isMoreBuy==0" name="isMoreBuy" @click="checkisMoreBuy('0')" />否 |
|
|
|
<input type="radio" :checked="addGoodsForm.isMoreBuy==1" name="isMoreBuy" @click="checkisMoreBuy('1')" />是 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</FormItem> |
|
|
|
</Col> |
|
|
|
<Col span="8"> |
|
|
|
<FormItem label="详细图文" class="form-noheight"> |
|
|
|
<div style="width:500px;height:400px;"> |
|
|
|
@ -376,6 +386,7 @@ |
|
|
|
specNum:9999 |
|
|
|
}], |
|
|
|
sellTime:0, //可售时间 |
|
|
|
isMoreBuy:0, |
|
|
|
sellBeginTime:'', //可售时段自定义---开始时间 |
|
|
|
sellEndTime:'', //可售时段自定义---结束时间 |
|
|
|
attributeList:'', |
|
|
|
@ -813,6 +824,9 @@ |
|
|
|
checkSellTime(type){ |
|
|
|
this.addGoodsForm.sellTime = type; |
|
|
|
}, |
|
|
|
checkisMoreBuy(type){ |
|
|
|
this.addGoodsForm.isMoreBuy = type; |
|
|
|
}, |
|
|
|
checkSpecValue(index){ |
|
|
|
//this.typeToAttrName = res.result.content[this.categoryIndex].title |
|
|
|
console.log("this.categorySonData[index]",this.categorySonData[index]) |
|
|
|
@ -1154,6 +1168,9 @@ |
|
|
|
if (this.modalType == 0) { |
|
|
|
// 添加 避免编辑后传入id等数据 记得删除 |
|
|
|
delete this.addGoodsForm.id; |
|
|
|
if(this.addGoodsForm.isMoreBuy != 1){ |
|
|
|
this.addGoodsForm.isMoreBuy = 0 |
|
|
|
} |
|
|
|
this.addGoodsForm.attributeListPrice = JSON.stringify(this.addGoodsForm.attributeListPrice) |
|
|
|
this.addGoodsForm.attributeList = Object.fromEntries(this.addGoodsForm.attributeList1) |
|
|
|
this.addGoodsForm.attributeList = JSON.stringify(this.addGoodsForm.attributeList) |
|
|
|
|