|
|
|
@ -85,6 +85,13 @@ |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="惠通分类:"> |
|
|
|
|
<el-checkbox-group v-model="checkboxGroup" size="small" @change="onChangeGroup"> |
|
|
|
|
<el-checkbox v-for="(item, index) in recommend" :key="index" :label="item.value">{{ item.name }}</el-checkbox> |
|
|
|
|
</el-checkbox-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col v-if="labelList.length" :span="24"> |
|
|
|
|
<el-form-item label="商品标签:"> |
|
|
|
|
<el-select |
|
|
|
@ -243,26 +250,26 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="优惠券(赠送券):" class="proCoupon"> |
|
|
|
|
<div class="acea-row"> |
|
|
|
|
<el-tag |
|
|
|
|
v-for="(tag, index) in formValidate.couponData" |
|
|
|
|
:key="index" |
|
|
|
|
class="mr10" |
|
|
|
|
closable |
|
|
|
|
:disable-transitions="false" |
|
|
|
|
@close="handleCloseCoupon(tag)" |
|
|
|
|
>{{ tag.title }} |
|
|
|
|
</el-tag> |
|
|
|
|
<el-button |
|
|
|
|
class="mr15" |
|
|
|
|
size="mini" |
|
|
|
|
@click="addCoupon" |
|
|
|
|
>选择优惠券</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<!-- <el-col :span="24">--> |
|
|
|
|
<!-- <el-form-item label="优惠券(赠送券):" class="proCoupon">--> |
|
|
|
|
<!-- <div class="acea-row">--> |
|
|
|
|
<!-- <el-tag--> |
|
|
|
|
<!-- v-for="(tag, index) in formValidate.couponData"--> |
|
|
|
|
<!-- :key="index"--> |
|
|
|
|
<!-- class="mr10"--> |
|
|
|
|
<!-- closable--> |
|
|
|
|
<!-- :disable-transitions="false"--> |
|
|
|
|
<!-- @close="handleCloseCoupon(tag)"--> |
|
|
|
|
<!-- >{{ tag.title }}--> |
|
|
|
|
<!-- </el-tag>--> |
|
|
|
|
<!-- <el-button--> |
|
|
|
|
<!-- class="mr15"--> |
|
|
|
|
<!-- size="mini"--> |
|
|
|
|
<!-- @click="addCoupon"--> |
|
|
|
|
<!-- >选择优惠券</el-button>--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- </el-col>--> |
|
|
|
|
</el-row> |
|
|
|
|
<!-- 规格设置 --> |
|
|
|
|
<el-row v-if="currentTab == '2'"> |
|
|
|
@ -451,7 +458,7 @@ |
|
|
|
|
<el-input |
|
|
|
|
v-if="formThead[iii].title === '付费会员价'" |
|
|
|
|
v-model="scope.row[iii]" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:disabled="formValidate.svip_price_type == 1" |
|
|
|
|
class="priceBox" |
|
|
|
|
controls-position="right" |
|
|
|
@ -799,71 +806,71 @@ |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<!-- 营销设置--> |
|
|
|
|
<el-row v-if="currentTab == '4'"> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="商品推荐:"> |
|
|
|
|
<el-checkbox-group |
|
|
|
|
v-model="checkboxGroup" |
|
|
|
|
size="small" |
|
|
|
|
@change="onChangeGroup" |
|
|
|
|
> |
|
|
|
|
<el-checkbox |
|
|
|
|
v-for="(item, index) in recommend" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.value" |
|
|
|
|
> |
|
|
|
|
{{ item.name }} |
|
|
|
|
</el-checkbox> |
|
|
|
|
</el-checkbox-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item v-if="deductionStatus > 0" label="积分抵扣比例:"> |
|
|
|
|
<el-radio-group |
|
|
|
|
v-model="deduction_set" |
|
|
|
|
@change="changeIntergral(deduction_set)" |
|
|
|
|
> |
|
|
|
|
<el-radio :label="1" class="radio">单独设置</el-radio> |
|
|
|
|
<el-radio :label="-1">默认设置</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<div v-if="deduction_set == 1"> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="formValidate.integral_rate" |
|
|
|
|
:min="0" |
|
|
|
|
controls-position="right" |
|
|
|
|
placeholder="请输入抵扣比例" |
|
|
|
|
/> |
|
|
|
|
% |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="是否开启礼包:"> |
|
|
|
|
<el-radio-group |
|
|
|
|
v-model="formValidate.is_gift_bag" |
|
|
|
|
:disabled="$route.params.id ? true : false" |
|
|
|
|
> |
|
|
|
|
<el-radio :label="0" class="radio">否</el-radio> |
|
|
|
|
<el-radio :label="1">是</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="备注:"> |
|
|
|
|
<div>1. 选择开启礼包后,不可修改</div> |
|
|
|
|
<div> |
|
|
|
|
2. |
|
|
|
|
用户购买该分销礼包商品后,可自动成为分销员(即已成为分销员的用户在移动端看不到该分销礼包商品) |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
3. |
|
|
|
|
该商品设置为分销礼包后会展示在平台后台的【分销】-【分销礼包】(即不会展示在平台后台-【商品列表】) |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<!-- <el-row v-if="currentTab == '4'">--> |
|
|
|
|
<!--<!– <el-col :span="24">–>--> |
|
|
|
|
<!--<!– <el-form-item label="商品推荐:">–>--> |
|
|
|
|
<!--<!– <el-checkbox-group–>--> |
|
|
|
|
<!--<!– v-model="checkboxGroup"–>--> |
|
|
|
|
<!--<!– size="small"–>--> |
|
|
|
|
<!--<!– @change="onChangeGroup"–>--> |
|
|
|
|
<!--<!– >–>--> |
|
|
|
|
<!--<!– <el-checkbox–>--> |
|
|
|
|
<!--<!– v-for="(item, index) in recommend"–>--> |
|
|
|
|
<!--<!– :key="index"–>--> |
|
|
|
|
<!--<!– :label="item.value"–>--> |
|
|
|
|
<!--<!– >–>--> |
|
|
|
|
<!--<!– {{ item.name }}–>--> |
|
|
|
|
<!--<!– </el-checkbox>–>--> |
|
|
|
|
<!--<!– </el-checkbox-group>–>--> |
|
|
|
|
<!--<!– </el-form-item>–>--> |
|
|
|
|
<!--<!– </el-col>–>--> |
|
|
|
|
<!-- <el-col :span="24">--> |
|
|
|
|
<!-- <el-form-item v-if="deductionStatus > 0" label="积分抵扣比例:">--> |
|
|
|
|
<!-- <el-radio-group--> |
|
|
|
|
<!-- v-model="deduction_set"--> |
|
|
|
|
<!-- @change="changeIntergral(deduction_set)"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-radio :label="1" class="radio">单独设置</el-radio>--> |
|
|
|
|
<!-- <el-radio :label="-1">默认设置</el-radio>--> |
|
|
|
|
<!-- </el-radio-group>--> |
|
|
|
|
<!-- <div v-if="deduction_set == 1">--> |
|
|
|
|
<!-- <el-input-number--> |
|
|
|
|
<!-- v-model="formValidate.integral_rate"--> |
|
|
|
|
<!-- :min="0"--> |
|
|
|
|
<!-- controls-position="right"--> |
|
|
|
|
<!-- placeholder="请输入抵扣比例"--> |
|
|
|
|
<!-- />--> |
|
|
|
|
<!-- %--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- </el-col>--> |
|
|
|
|
<!-- <el-col :span="24">--> |
|
|
|
|
<!-- <el-form-item label="是否开启礼包:">--> |
|
|
|
|
<!-- <el-radio-group--> |
|
|
|
|
<!-- v-model="formValidate.is_gift_bag"--> |
|
|
|
|
<!-- :disabled="$route.params.id ? true : false"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-radio :label="0" class="radio">否</el-radio>--> |
|
|
|
|
<!-- <el-radio :label="1">是</el-radio>--> |
|
|
|
|
<!-- </el-radio-group>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- </el-col>--> |
|
|
|
|
<!-- <el-col :span="24">--> |
|
|
|
|
<!-- <el-form-item label="备注:">--> |
|
|
|
|
<!-- <div>1. 选择开启礼包后,不可修改</div>--> |
|
|
|
|
<!-- <div>--> |
|
|
|
|
<!-- 2.--> |
|
|
|
|
<!-- 用户购买该分销礼包商品后,可自动成为分销员(即已成为分销员的用户在移动端看不到该分销礼包商品)--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<!-- <div>--> |
|
|
|
|
<!-- 3.--> |
|
|
|
|
<!-- 该商品设置为分销礼包后会展示在平台后台的【分销】-【分销礼包】(即不会展示在平台后台-【商品列表】)--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- </el-col>--> |
|
|
|
|
<!-- </el-row>--> |
|
|
|
|
<!-- 其它设置 --> |
|
|
|
|
<el-row v-if="currentTab == '5'"> |
|
|
|
|
<el-row v-if="currentTab == '4'"> |
|
|
|
|
<el-col v-if="deliveryList.length > 0" :span="24"> |
|
|
|
|
<el-form-item label="送货方式:" prop="delivery_way"> |
|
|
|
|
<div class="acea-row"> |
|
|
|
@ -1083,7 +1090,7 @@ |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -1156,7 +1163,7 @@ |
|
|
|
|
>上一步 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
v-show="currentTab < 5" |
|
|
|
|
v-show="currentTab < 4" |
|
|
|
|
type="primary" |
|
|
|
|
class="submission" |
|
|
|
|
size="small" |
|
|
|
@ -1164,7 +1171,7 @@ |
|
|
|
|
>下一步 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
v-show="currentTab == '5' || $route.params.id" |
|
|
|
|
v-show="currentTab == '4' || $route.params.id" |
|
|
|
|
:loading="loading" |
|
|
|
|
type="primary" |
|
|
|
|
class="submission" |
|
|
|
@ -1284,6 +1291,19 @@ const defaultObj = { |
|
|
|
|
extend: [], // 自定义留言 |
|
|
|
|
type: 0 |
|
|
|
|
} |
|
|
|
|
const proOptions = [{ |
|
|
|
|
name: '惠通甄选', |
|
|
|
|
value: 'is_hot' |
|
|
|
|
}, { |
|
|
|
|
name: '惠通优选', |
|
|
|
|
value: 'is_benefit' |
|
|
|
|
}, { |
|
|
|
|
name: '惠通云店', |
|
|
|
|
value: 'is_best' |
|
|
|
|
}, { |
|
|
|
|
name: '惠通特供', |
|
|
|
|
value: 'is_new' |
|
|
|
|
}] |
|
|
|
|
const objTitle = { |
|
|
|
|
price: { |
|
|
|
|
title: '售价' |
|
|
|
@ -1310,7 +1330,7 @@ const objTitle = { |
|
|
|
|
title: '体积(m³)' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
const proOptions = [{ name: '店铺推荐', value: 'is_good' }] |
|
|
|
|
// const proOptions = [{ name: '店铺推荐', value: 'is_good' }] |
|
|
|
|
export default { |
|
|
|
|
name: 'ProductProductAdd', |
|
|
|
|
components: { |
|
|
|
@ -1462,7 +1482,7 @@ export default { |
|
|
|
|
deliveryType: [], |
|
|
|
|
virtual: [ |
|
|
|
|
{ tit: '普通商品', id: 0, tit2: '物流发货' }, |
|
|
|
|
{ tit: '虚拟商品', id: 1, tit2: '虚拟发货' } |
|
|
|
|
// { tit: '虚拟商品', id: 1, tit2: '虚拟发货' } |
|
|
|
|
], |
|
|
|
|
customBtn: 0, // 自定义留言开关 |
|
|
|
|
// 自定义留言下拉选择 |
|
|
|
@ -1507,8 +1527,7 @@ export default { |
|
|
|
|
{ title: '商品信息', name: '1' }, |
|
|
|
|
{ title: '规格设置', name: '2' }, |
|
|
|
|
{ title: '商品详情', name: '3' }, |
|
|
|
|
{ title: '营销设置', name: '4' }, |
|
|
|
|
{ title: '其他设置', name: '5' } |
|
|
|
|
{ title: '其他设置', name: '4' } |
|
|
|
|
], |
|
|
|
|
type: 0, |
|
|
|
|
modals: false, |
|
|
|
@ -1549,7 +1568,7 @@ export default { |
|
|
|
|
deep: true |
|
|
|
|
}, |
|
|
|
|
currentTab(newVal) { |
|
|
|
|
if (newVal == 5) { |
|
|
|
|
if (newVal == 4) { |
|
|
|
|
this.$nextTick(e=>{ |
|
|
|
|
this.setSort() |
|
|
|
|
}) |
|
|
|
@ -1735,6 +1754,18 @@ export default { |
|
|
|
|
this.checkboxGroup.includes('is_good') |
|
|
|
|
? (this.formValidate.is_good = 1) |
|
|
|
|
: (this.formValidate.is_good = 0) |
|
|
|
|
this.checkboxGroup.includes('is_hot') |
|
|
|
|
? (this.formValidate.is_hot = 1) |
|
|
|
|
: (this.formValidate.is_hot = 0) |
|
|
|
|
this.checkboxGroup.includes('is_benefit') |
|
|
|
|
? (this.formValidate.is_benefit = 1) |
|
|
|
|
: (this.formValidate.is_benefit = 0) |
|
|
|
|
this.checkboxGroup.includes('is_best') |
|
|
|
|
? (this.formValidate.is_best = 1) |
|
|
|
|
: (this.formValidate.is_best = 0) |
|
|
|
|
this.checkboxGroup.includes('is_new') |
|
|
|
|
? (this.formValidate.is_new = 1) |
|
|
|
|
: (this.formValidate.is_new = 0) |
|
|
|
|
}, |
|
|
|
|
watCh(val) { |
|
|
|
|
const tmp = {} |
|
|
|
@ -2201,6 +2232,10 @@ export default { |
|
|
|
|
once_max_count: info.once_max_count || 1, |
|
|
|
|
once_min_count: info.once_min_count || 0, |
|
|
|
|
is_good: info.is_good, |
|
|
|
|
is_hot: info.is_hot, |
|
|
|
|
is_benefit: info.is_benefit, |
|
|
|
|
is_best: info.is_best, |
|
|
|
|
is_new: info.is_new, |
|
|
|
|
temp_id: info.temp_id, |
|
|
|
|
guarantee_template_id: info.guarantee_template_id |
|
|
|
|
? info.guarantee_template_id |
|
|
|
@ -2259,6 +2294,18 @@ export default { |
|
|
|
|
if (this.formValidate.is_good === 1) { |
|
|
|
|
this.checkboxGroup.push("is_good"); |
|
|
|
|
} |
|
|
|
|
if (this.formValidate.is_hot === 1) { |
|
|
|
|
this.checkboxGroup.push("is_hot"); |
|
|
|
|
} |
|
|
|
|
if (this.formValidate.is_benefit === 1) { |
|
|
|
|
this.checkboxGroup.push("is_benefit"); |
|
|
|
|
} |
|
|
|
|
if (this.formValidate.is_best === 1) { |
|
|
|
|
this.checkboxGroup.push("is_best"); |
|
|
|
|
} |
|
|
|
|
if (this.formValidate.is_new === 1) { |
|
|
|
|
this.checkboxGroup.push("is_new"); |
|
|
|
|
} |
|
|
|
|
this.fullscreenLoading = false; |
|
|
|
|
}, |
|
|
|
|
//关闭淘宝弹窗并生成数据; |
|
|
|
|