Browse Source

商品设置是否加料

master
wangfukang 1 month ago
parent
commit
5b654518aa
  1. 17
      src/views/app/shop/dictManage.vue

17
src/views/app/shop/dictManage.vue

@ -235,6 +235,16 @@
</div> </div>
</FormItem> </FormItem>
</Col> </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"> <Col span="8">
<FormItem label="详细图文" class="form-noheight"> <FormItem label="详细图文" class="form-noheight">
<div style="width:500px;height:400px;"> <div style="width:500px;height:400px;">
@ -376,6 +386,7 @@
specNum:9999 specNum:9999
}], }],
sellTime:0, // sellTime:0, //
isMoreBuy:0,
sellBeginTime:'', //--- sellBeginTime:'', //---
sellEndTime:'', //--- sellEndTime:'', //---
attributeList:'', attributeList:'',
@ -813,6 +824,9 @@
checkSellTime(type){ checkSellTime(type){
this.addGoodsForm.sellTime = type; this.addGoodsForm.sellTime = type;
}, },
checkisMoreBuy(type){
this.addGoodsForm.isMoreBuy = type;
},
checkSpecValue(index){ checkSpecValue(index){
//this.typeToAttrName = res.result.content[this.categoryIndex].title //this.typeToAttrName = res.result.content[this.categoryIndex].title
console.log("this.categorySonData[index]",this.categorySonData[index]) console.log("this.categorySonData[index]",this.categorySonData[index])
@ -1154,6 +1168,9 @@
if (this.modalType == 0) { if (this.modalType == 0) {
// id // id
delete this.addGoodsForm.id; delete this.addGoodsForm.id;
if(this.addGoodsForm.isMoreBuy != 1){
this.addGoodsForm.isMoreBuy = 0
}
this.addGoodsForm.attributeListPrice = JSON.stringify(this.addGoodsForm.attributeListPrice) this.addGoodsForm.attributeListPrice = JSON.stringify(this.addGoodsForm.attributeListPrice)
this.addGoodsForm.attributeList = Object.fromEntries(this.addGoodsForm.attributeList1) this.addGoodsForm.attributeList = Object.fromEntries(this.addGoodsForm.attributeList1)
this.addGoodsForm.attributeList = JSON.stringify(this.addGoodsForm.attributeList) this.addGoodsForm.attributeList = JSON.stringify(this.addGoodsForm.attributeList)

Loading…
Cancel
Save