添加:商品支持设置固定抵扣金额
This commit is contained in:
parent
4470d7c777
commit
ceb1aa8b33
|
|
@ -1007,26 +1007,33 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</template>
|
</template>
|
||||||
<!--积分抵扣-->
|
<!--积分抵扣-->
|
||||||
<el-col :span="24">
|
<template v-if="deductionStatus > 0">
|
||||||
<el-form-item v-if="deductionStatus > 0" label="积分抵扣比例:">
|
<el-col :span="24">
|
||||||
<el-radio-group
|
<el-form-item label="积分抵扣比例:">
|
||||||
v-model="deduction_set"
|
<el-radio-group v-model="deduction_set" @change="changeIntergral(deduction_set)">
|
||||||
@change="changeIntergral(deduction_set)"
|
<el-radio :label="1" class="radio">单独设置</el-radio>
|
||||||
>
|
<el-radio :label="-1">默认设置</el-radio>
|
||||||
<el-radio :label="1" class="radio">单独设置</el-radio>
|
</el-radio-group>
|
||||||
<el-radio :label="-1">默认设置</el-radio>
|
</el-form-item>
|
||||||
</el-radio-group>
|
</el-col>
|
||||||
<div v-if="deduction_set == 1">
|
<template v-if="deduction_set == 1">
|
||||||
<el-input-number
|
<el-col :span="24">
|
||||||
v-model="formValidate.integral_rate"
|
<el-form-item label="积分抵扣类型:">
|
||||||
:min="0"
|
<el-radio-group v-model="formValidate.integral_deduction_type">
|
||||||
controls-position="right"
|
<el-radio :label="0" class="radio">百分比</el-radio>
|
||||||
placeholder="请输入抵扣比例"
|
<el-radio :label="1">固定数量</el-radio>
|
||||||
/>
|
</el-radio-group>
|
||||||
%
|
<div v-if="formValidate.integral_deduction_type == 1">
|
||||||
</div>
|
抵扣<el-input-number v-model="formValidate.integral_deduction_money" :min="0.01" :step="0.01" controls-position="right" placeholder="请输入抵扣金额" />元
|
||||||
</el-form-item>
|
</div>
|
||||||
</el-col>
|
<div v-else>
|
||||||
|
<el-input-number v-model="formValidate.integral_rate" :min="0.01" :max="100" :step="0.01" controls-position="right" placeholder="请输入抵扣比例" />%
|
||||||
|
</div>
|
||||||
|
<div class="tips">百分比:当前订单该商品实际支付总金额 * 设置的比例 = 可以抵扣的金额;固定数量:指定数量 * 购买的商品数量 = 可以抵扣的金额</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
</el-row>
|
</el-row>
|
||||||
<!-- 其它设置 -->
|
<!-- 其它设置 -->
|
||||||
<el-row v-if="currentTab == '6'">
|
<el-row v-if="currentTab == '6'">
|
||||||
|
|
@ -1459,7 +1466,10 @@ const defaultObj = {
|
||||||
integral_give_set: 0,
|
integral_give_set: 0,
|
||||||
integral_give_type: 0,
|
integral_give_type: 0,
|
||||||
integral_give_rate: 0,
|
integral_give_rate: 0,
|
||||||
integral_give_money: 0
|
integral_give_money: 0,
|
||||||
|
// 积分抵扣
|
||||||
|
integral_deduction_type: 0,
|
||||||
|
integral_deduction_money: 0,
|
||||||
}
|
}
|
||||||
const objTitle = {
|
const objTitle = {
|
||||||
price: {
|
price: {
|
||||||
|
|
@ -2275,7 +2285,7 @@ export default {
|
||||||
if (e == -1) {
|
if (e == -1) {
|
||||||
this.formValidate.integral_rate = -1
|
this.formValidate.integral_rate = -1
|
||||||
} else {
|
} else {
|
||||||
this.formValidate.integral_rate = this.formValidate.integral_rate
|
this.formValidate.integral_rate = this.formValidate.integral_rate > 0 ? this.formValidate.integral_rate : 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 选择属性确认
|
// 选择属性确认
|
||||||
|
|
@ -2675,7 +2685,10 @@ export default {
|
||||||
integral_give_set: info.integral_give_set || 0,
|
integral_give_set: info.integral_give_set || 0,
|
||||||
integral_give_type: info.integral_give_type || 0,
|
integral_give_type: info.integral_give_type || 0,
|
||||||
integral_give_rate: info.integral_give_rate || 0,
|
integral_give_rate: info.integral_give_rate || 0,
|
||||||
integral_give_money: info.integral_give_money || 0
|
integral_give_money: info.integral_give_money || 0,
|
||||||
|
//积分抵扣
|
||||||
|
integral_deduction_type: info.integral_deduction_type || 0,
|
||||||
|
integral_deduction_money: info.integral_deduction_money || 0
|
||||||
};
|
};
|
||||||
if (info.svip_price_type != 0 && info.mer_svip_status){
|
if (info.svip_price_type != 0 && info.mer_svip_status){
|
||||||
this.attrVal = {
|
this.attrVal = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue