diff --git a/src/views/app/shop/dictManage.vue b/src/views/app/shop/dictManage.vue index a7b960b..ff80617 100644 --- a/src/views/app/shop/dictManage.vue +++ b/src/views/app/shop/dictManage.vue @@ -235,6 +235,16 @@ + + +
+
+ 否 + 是 +
+
+
+
@@ -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)