|
@@ -55,8 +55,8 @@
|
|
|
</div>
|
|
|
<div class="ruleDescList" v-if="form.gateType==='FIXED_AMOUNT'">
|
|
|
购买每满
|
|
|
- <a-input-number v-model="form.gateValue" :max="999999" :min="0" :precision="form.regularUnit=='YUAN'?2:0" size="small"/>
|
|
|
- <a-select default-value="GE" v-model="form.regularUnit" style="width: 50px;margin-left:5px;" size="small" @change="handleUnit">
|
|
|
+ <a-input-number v-model="form.gateValue" :max="999999" :min="0" :precision="form.gateUnit=='YUAN'?2:0" size="small"/>
|
|
|
+ <a-select default-value="GE" v-model="form.gateUnit" style="width: 50px;margin-left:5px;" size="small" @change="handleUnit">
|
|
|
<a-select-option value="GE">
|
|
|
个
|
|
|
</a-select-option>
|
|
@@ -255,7 +255,7 @@ export default {
|
|
|
gateFlag: '0', // 门槛
|
|
|
gateType: undefined,
|
|
|
gateValue: undefined,
|
|
|
- regularUnit: 'GE',
|
|
|
+ gateUnit: 'GE',
|
|
|
quotaAmount: undefined,
|
|
|
discountType: '0', // 特价规则
|
|
|
gateInfo: undefined,
|
|
@@ -296,7 +296,7 @@ export default {
|
|
|
methods: {
|
|
|
// 单位切换时,满赠规则数据清空
|
|
|
handleUnit (val) {
|
|
|
- this.form.regularUnit = val
|
|
|
+ this.form.gateUnit = val
|
|
|
this.form.gateValue = undefined
|
|
|
},
|
|
|
handleProvincePrice (e) {
|
|
@@ -360,7 +360,7 @@ export default {
|
|
|
}
|
|
|
// 判断特价规则必填
|
|
|
if (_this.form.discountType != '0' && _this.setTableData) {
|
|
|
- if (_this.setTableData[0].provinceValue==undefined || _this.setTableData[0].cityValue==undefined || _this.setTableData[0].specialValue==undefined) {
|
|
|
+ if (_this.setTableData[0].provinceValue == undefined || _this.setTableData[0].cityValue == undefined || _this.setTableData[0].specialValue == undefined) {
|
|
|
_this.$message.warning('特价规则条件不能为空!')
|
|
|
return
|
|
|
}
|
|
@@ -436,7 +436,7 @@ export default {
|
|
|
} else if (form.gateType === 'MIN_AMOUNT') {
|
|
|
form.gateInfo = '购买门槛产品满最低金额' + form.gateValue + '不限制配额'
|
|
|
} else {
|
|
|
- form.gateInfo = '购买每满' + form.gateValue + form.regularUnit == 'YUAN' ? '元' : '个' + '门槛产品,可采购' + form.quotaAmount + '个特价产品(配额算销售额)'
|
|
|
+ form.gateInfo = '购买每满' + form.gateValue + form.gateUnit == 'YUAN' ? '元' : '个' + '门槛产品,可采购' + form.quotaAmount + '个特价产品(配额算销售额)'
|
|
|
}
|
|
|
}
|
|
|
if (form.discountType == '0') {
|
|
@@ -511,7 +511,7 @@ export default {
|
|
|
gateFlag: '0', // 门槛
|
|
|
gateType: undefined,
|
|
|
gateValue: undefined,
|
|
|
- regularUnit: 'GE',
|
|
|
+ gateUnit: 'GE',
|
|
|
quotaAmount: undefined,
|
|
|
discountType: '0', // 特价规则
|
|
|
gateProductList: undefined,
|