Commit 7b35ca17 authored by zhengke's avatar zhengke

修改

parent 2c49ecc4
......@@ -130,8 +130,7 @@
<goodsSpe></goodsSpe>
</el-form-item>
<el-form-item label="商品货号">
<el-input v-model="addMsg.goods_no" size="small" placeholder="请输入内容"
class="input-with-select">
<el-input v-model="addMsg.goods_no" size="small" placeholder="请输入内容" class="input-with-select">
</el-input>
</el-form-item>
<el-form-item label="商品重量">
......@@ -150,7 +149,8 @@
<el-row>
<el-col :span="12">
<el-form-item label="是否开启虚拟成团">
<el-switch active-color="#409EFF" v-model="addMsg.is_auto_add_robot" :active-value="1" :inactive-value="2">
<el-switch active-color="#409EFF" v-model="addMsg.is_auto_add_robot" :active-value="1"
:inactive-value="2">
</el-switch>
<div style="color:#c6c6c6">开启虚拟成团后,系统将模拟“匿名买家”凑满人数促成成团,商家仅需对真实拼团买家发货</div>
</el-form-item>
......@@ -161,13 +161,14 @@
<i class="el-tooltip el-icon-info"></i>
</el-tooltip>
</template>
<el-input type="number" :disabled="true" v-model="addMsg.virtual_sales" min="0" size="small" placeholder="请输入内容"
class="input-with-select">
<el-input type="number" :disabled="true" v-model="addMsg.virtual_sales" min="0" size="small"
placeholder="请输入内容" class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
<el-form-item label="是否允许单独购买">
<el-switch active-color="#409EFF" v-model="addMsg.is_alone_buy" :active-value="1" :inactive-value="2">
<el-switch active-color="#409EFF" v-model="addMsg.is_alone_buy" :active-value="1"
:inactive-value="2">
</el-switch>
</el-form-item>
<el-form-item label="商品服务">
......@@ -202,7 +203,8 @@
<template slot="append"></template>
</el-input>
</div>
<el-checkbox v-model="addMsg.confine_count <= -1" @change="itemChecked" style="margin-left:5px;line-height:32px;">无限制
<el-checkbox v-model="addMsg.confine_count <= -1" @change="itemChecked"
style="margin-left:5px;line-height:32px;">无限制
</el-checkbox>
</div>
<div flex="dir:left" style="margin-top: 10px;">
......@@ -212,7 +214,8 @@
<template slot="append"></template>
</el-input>
</div>
<el-checkbox v-model="addMsg.confine_order_count<=-1" @change="itemOrderChecked" style="margin-left:5px;line-height:32px;">无限制
<el-checkbox v-model="addMsg.confine_order_count<=-1" @change="itemOrderChecked"
style="margin-left:5px;line-height:32px;">无限制
</el-checkbox>
</div>
</el-form-item>
......@@ -223,8 +226,8 @@
<i class="el-tooltip el-icon-info"></i>
</el-tooltip>
</template>
<el-input type="number" :disabled="true" v-model="addMsg.pieces" min="0" size="small" placeholder="请输入数量"
class="input-with-select">
<el-input type="number" :disabled="true" v-model="addMsg.pieces" min="0" size="small"
placeholder="请输入数量" class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
......@@ -235,13 +238,14 @@
<i class="el-tooltip el-icon-info"></i>
</el-tooltip>
</template>
<el-input type="number" :disabled="true" v-model="addMsg.forehead" min="0" size="small" placeholder="请输入金额"
class="input-with-select">
<el-input type="number" :disabled="true" v-model="addMsg.forehead" min="0" size="small"
placeholder="请输入金额" class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
<el-form-item label="区域购买">
<el-switch active-color="#409EFF" v-model="addMsg.is_area_limit" :active-value="1" :inactive-value="2">
<el-switch active-color="#409EFF" v-model="addMsg.is_area_limit" :active-value="1"
:inactive-value="2">
</el-switch>
</el-form-item>
</el-col>
......@@ -265,7 +269,8 @@
<i class="el-icon-info"></i>
</el-tooltip>
</template>
<el-input type="number" min="0" v-model="addMsg.give_integral" size="small" placeholder="请输入赠送积分数量">
<el-input type="number" min="0" v-model="addMsg.give_integral" size="small"
placeholder="请输入赠送积分数量">
<template slot="append">
<el-radio :label="1" v-model="addMsg.give_integral_type">固定值
......@@ -282,7 +287,8 @@
<i class="el-icon-info"></i>
</el-tooltip>
</template>
<el-input type="number" min="0" size="small" v-model="addMsg.forehead_integral" placeholder="请输最高抵扣金额">
<el-input type="number" min="0" size="small" v-model="addMsg.forehead_integral"
placeholder="请输最高抵扣金额">
<template slot="prepend">最多抵扣</template>
<template slot="append">
......@@ -315,7 +321,8 @@
<i class="el-icon-info"></i>
</el-tooltip>
</template>
<el-input type="text" size="small" v-model="addMsg.app_share_title" placeholder="请输入分享标题"></el-input>
<el-input type="text" size="small" v-model="addMsg.app_share_title" placeholder="请输入分享标题">
</el-input>
<el-button type="text">查看图例</el-button>
</el-form-item>
<el-form-item>
......@@ -338,14 +345,14 @@
</el-row>
</el-card>
</el-tab-pane>
<el-tab-pane lebel="购买设置">
<el-tab-pane label="阶梯团设置" name="second">
<ladderGroup></ladderGroup>
</el-tab-pane>
<el-tab-pane lebel="分销价设置">
<el-tab-pane label="分销价设置" name="third">
<distributePrice></distributePrice>
</el-tab-pane>
<el-tab-pane lebel="阶梯团设置">
<el-tab-pane label="阶梯团设置" name="fourth">
4
</el-tab-pane>
</el-tabs>
......@@ -365,50 +372,55 @@
<script>
import ChooseImg from "@/components/global/ChooseImg.vue";
import goodsSpe from "@/components/pintuan/pintuanPlugin/goodsSpecifica.vue"
import ladderGroup from "@/components/pintuan/pintuanPlugin/ladderGroup.vue"
import distributePrice from "@/components/pintuan/pintuanPlugin/distributePrice.vue"
export default {
components: {
ChooseImg,
goodsSpe
goodsSpe,
ladderGroup
},
data() {
return {
activeName: "first",
activeName: "second",
addMsg: {
start_time: '', //开始时间
end_time: '', //结束时间
name: '', //商品名称
status:0, //上架状态
status: 0, //上架状态
Sort: 100, //排序
price: 0, //售价
original_price: 0, //原价
goods_num:0, //库存
goods_num: 0, //库存
goods_stock: 0, //商品总库存
attr_default_name: '', //默认规格名
// 商品规格字段
goods_no:'', //商品货号
goods_weight:'', //商品重量
is_auto_add_robot:0, //是否开启虚拟团
virtual_sales:0, //已团商品数
is_alone_buy:0, //是否允许单独购买
Service:[], //商品服务字段
freight:'', //运费设置
form:'', //自定义表单
confine_count:-1, //限购数量
confine_order_count:-1, //限购订单
pieces:0, //单品满件包邮
forehead:0, //单品满额包邮
is_area_limit:0, //区域购买
// 商品规格字段
goods_no: '', //商品货号
goods_weight: '', //商品重量
is_auto_add_robot: 0, //是否开启虚拟团
virtual_sales: 0, //已团商品数
is_alone_buy: 0, //是否允许单独购买
Service: [], //商品服务字段
freight: '', //运费设置
form: '', //自定义表单
confine_count: -1, //限购数量
confine_order_count: -1, //限购订单
pieces: 0, //单品满件包邮
forehead: 0, //单品满额包邮
is_area_limit: 0, //区域购买
give_integral:0, //积分赠送
give_integral_type:1, //积分赠送=>1固定值 2百分比
forehead_integral:0, //积分抵扣
forehead_integral_type:1, //积分抵扣=>1固定值 2百分比
accumulative:0, //允许多件累计抵扣
cards:[], //卡券发放
app_share_title:'', //自定义分享标题、
app_share_pic:'', //自定义分享图片
give_integral: 0, //积分赠送
give_integral_type: 1, //积分赠送=>1固定值 2百分比
forehead_integral: 0, //积分抵扣
forehead_integral_type: 1, //积分抵扣=>1固定值 2百分比
accumulative: 0, //允许多件累计抵扣
cards: [], //卡券发放
app_share_title: '', //自定义分享标题、
app_share_pic: '', //自定义分享图片
},
attr_groups: [],
new_attr_groups: [],
rules: {
// Name: [{
// required: true,
......@@ -434,6 +446,26 @@
itemOrderChecked(type) {
this.addMsg.confine_order_count = type ? -1 : 0;
},
},
watch: {
attr_groups: {
handler: function (data) {
this.new_attr_groups = JSON.parse(JSON.stringify(data));
if (this.new_attr_groups.length === 0) {
this.new_attr_groups = [{
attr_group_id: 1,
attr_group_name: "规格",
attr_list: {
attr_id: 0,
attr_name: '默认',
pic_url: '',
},
}]
}
},
deep: true,
immediate: true
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment