|
@@ -119,13 +119,13 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</fieldset>
|
|
</fieldset>
|
|
|
- <el-form-item label="多规格" prop="mult_sku">
|
|
|
|
|
|
|
+ <!-- <el-form-item label="多规格" prop="mult_sku">
|
|
|
<el-radio-group v-model="formData.mult_sku">
|
|
<el-radio-group v-model="formData.mult_sku">
|
|
|
<el-radio border :label="1">关闭</el-radio>
|
|
<el-radio border :label="1">关闭</el-radio>
|
|
|
<el-radio border :label="2">开启</el-radio>
|
|
<el-radio border :label="2">开启</el-radio>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
<div class="el-form-item-msg"></div>
|
|
<div class="el-form-item-msg"></div>
|
|
|
- </el-form-item>
|
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
<fieldset v-if="formData.mult_sku == 2">
|
|
<fieldset v-if="formData.mult_sku == 2">
|
|
|
<legend><el-tag>规格明细</el-tag></legend>
|
|
<legend><el-tag>规格明细</el-tag></legend>
|
|
|
<el-button type="primary" @click="addSkuSpecs" v-if="skuSpecs.length<5">新增规格</el-button>
|
|
<el-button type="primary" @click="addSkuSpecs" v-if="skuSpecs.length<5">新增规格</el-button>
|
|
@@ -367,7 +367,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
<el-card shadow="never" header="消费规则">
|
|
<el-card shadow="never" header="消费规则">
|
|
|
- <el-form-item label="使用规则">
|
|
|
|
|
|
|
+ <!-- <el-form-item label="使用规则">
|
|
|
<div class="el-form-item-msg">
|
|
<div class="el-form-item-msg">
|
|
|
<el-button @click="addRule">添加规则</el-button>
|
|
<el-button @click="addRule">添加规则</el-button>
|
|
|
</div>
|
|
</div>
|
|
@@ -382,7 +382,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </el-form-item>
|
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item label="限购规则" prop="limit_rule_type">
|
|
<el-form-item label="限购规则" prop="limit_rule_type">
|
|
|
<el-radio-group v-model="formData.limit_rule_type">
|
|
<el-radio-group v-model="formData.limit_rule_type">
|
|
|
<el-radio :label="1">不限制购买</el-radio>
|
|
<el-radio :label="1">不限制购买</el-radio>
|
|
@@ -677,23 +677,23 @@ export default {
|
|
|
},
|
|
},
|
|
|
async getDetail(id,product_id){
|
|
async getDetail(id,product_id){
|
|
|
var resp = await this.$API.merGoods.detail.get({"id":id,"product_id":product_id});
|
|
var resp = await this.$API.merGoods.detail.get({"id":id,"product_id":product_id});
|
|
|
- this.showNext = true;
|
|
|
|
|
if (resp.code == 0) {
|
|
if (resp.code == 0) {
|
|
|
this.$message.error(resp.msg);
|
|
this.$message.error(resp.msg);
|
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
|
},1500)
|
|
},1500)
|
|
|
}
|
|
}
|
|
|
- console.log("data",resp.data)
|
|
|
|
|
this.formData = resp.data;
|
|
this.formData = resp.data;
|
|
|
this.specs = resp.data.specs;
|
|
this.specs = resp.data.specs;
|
|
|
this.skuSpecs = resp.data.skuSpecs;
|
|
this.skuSpecs = resp.data.skuSpecs;
|
|
|
this.notificationData = resp.data.notification
|
|
this.notificationData = resp.data.notification
|
|
|
|
|
|
|
|
|
|
+ this.channelLoad = true;
|
|
|
var typeData = this.$TOOL.findNodeById(this.categoryData,parseInt(this.formData.category_id));
|
|
var typeData = this.$TOOL.findNodeById(this.categoryData,parseInt(this.formData.category_id));
|
|
|
if (!typeData) return this.$message.error("获取商品类型失败")
|
|
if (!typeData) return this.$message.error("获取商品类型失败")
|
|
|
- this.typeData = typeData.types;
|
|
|
|
|
|
|
+ this.channelLoad = false;
|
|
|
this.showNext = true;
|
|
this.showNext = true;
|
|
|
|
|
+ this.typeData = typeData.types;
|
|
|
},
|
|
},
|
|
|
skuResp(data){
|
|
skuResp(data){
|
|
|
this.skuSpecs[data.index] = data.data;
|
|
this.skuSpecs[data.index] = data.data;
|
|
@@ -796,10 +796,10 @@ export default {
|
|
|
var { formData, $message } = this;
|
|
var { formData, $message } = this;
|
|
|
var validate = await this.$refs.dialogForm.validate().catch(()=>{});
|
|
var validate = await this.$refs.dialogForm.validate().catch(()=>{});
|
|
|
if(!validate){ return false }
|
|
if(!validate){ return false }
|
|
|
- if (this.notificationData.length == 0) {
|
|
|
|
|
- return this.$message.error("使用规则至少需要一组以上");
|
|
|
|
|
- }
|
|
|
|
|
- formData.notification = this.notificationData;
|
|
|
|
|
|
|
+ // if (this.notificationData.length == 0) {
|
|
|
|
|
+ // return this.$message.error("使用规则至少需要一组以上");
|
|
|
|
|
+ // }
|
|
|
|
|
+ // formData.notification = this.notificationData;
|
|
|
formData.specs = this.specs;
|
|
formData.specs = this.specs;
|
|
|
formData.skuSpecs = this.skuSpecs;
|
|
formData.skuSpecs = this.skuSpecs;
|
|
|
if (formData.sold_start_times) {
|
|
if (formData.sold_start_times) {
|
|
@@ -828,7 +828,7 @@ export default {
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
.main-body{display: flex;height: 100%;gap: 20px;}
|
|
.main-body{display: flex;height: 100%;gap: 20px;}
|
|
|
-.main-body .reason{height: calc(100% - 75px);}
|
|
|
|
|
|
|
+.main-body.reason{height: calc(100% - 85px);}
|
|
|
.main-body .body-left{background-color: #fff;flex: 1 1 0%;}
|
|
.main-body .body-left{background-color: #fff;flex: 1 1 0%;}
|
|
|
.body-left-title{height: 60px;line-height: 40px;padding: 10px;font-size: 16px;color: #000;font-weight: bold;border-bottom: 1px solid #f8f8f8;}
|
|
.body-left-title{height: 60px;line-height: 40px;padding: 10px;font-size: 16px;color: #000;font-weight: bold;border-bottom: 1px solid #f8f8f8;}
|
|
|
.main-body .body-form{height: calc(100% - 80px);overflow: auto;padding: 10px;}
|
|
.main-body .body-form{height: calc(100% - 80px);overflow: auto;padding: 10px;}
|