|
@@ -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="2" size="small"/>
|
|
|
- <a-select default-value="YUAN" v-model="form.regularUnit" style="width: 50px;margin-left:5px;" size="small">
|
|
|
+ <a-input-number v-model="form.gateValue" :max="999999" :min="0" :precision="form.regularUnit==='YUAN'?2:0" size="small"/>
|
|
|
+ <a-select default-value="YUAN" v-model="form.regularUnit" style="width: 50px;margin-left:5px;" size="small" @change="handleUnit">
|
|
|
<a-select-option value="YUAN">
|
|
|
元
|
|
|
</a-select-option>
|
|
@@ -65,7 +65,7 @@
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
门槛产品,可采购
|
|
|
- <a-input-number v-model="form.quotaAmount" :max="999999" :min="0" :precision="2" size="small"/>
|
|
|
+ <a-input-number v-model="form.quotaAmount" :max="999999" :min="0" :precision="0" size="small"/>
|
|
|
个特价产品(配额算销售额)
|
|
|
</div>
|
|
|
</div>
|
|
@@ -265,7 +265,7 @@ export default {
|
|
|
gateFlag: [ { required: true, message: '请选择规则门槛', trigger: 'change' } ],
|
|
|
discountType: [{ required: true, message: '请选择特价规则', trigger: 'change' }]
|
|
|
},
|
|
|
- setTableData: [],
|
|
|
+ setTableData: null,
|
|
|
chooseVal: 'a',
|
|
|
openProductsModal: false,
|
|
|
chooseProducts: [],
|
|
@@ -289,28 +289,33 @@ export default {
|
|
|
{ title: '特约直降', scopedSlots: { customRender: 'specialPrice' }, width: '33%', align: 'center' }
|
|
|
]
|
|
|
}
|
|
|
- _this.setTableData = [{
|
|
|
- provinceValue: undefined,
|
|
|
- cityValue: undefined,
|
|
|
- specialValue: undefined
|
|
|
- }]
|
|
|
return arr
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 单位切换时,满赠规则数据清空
|
|
|
+ handleUnit (val) {
|
|
|
+ this.form.regularUnit = val
|
|
|
+ this.form.gateValue = undefined
|
|
|
+ },
|
|
|
handleProvincePrice (e) {
|
|
|
- this.setTableData[0].provinceValue = e.target.value
|
|
|
+ this.setTableData[0].provinceValue = Number(e.target.value)
|
|
|
if (this.setTableData[0].cityValue) {
|
|
|
- this.setTableData[0].cityValue = e.target.value
|
|
|
+ this.setTableData[0].cityValue = Number(e.target.value)
|
|
|
}
|
|
|
},
|
|
|
handleCityPrice (e) {
|
|
|
- this.setTableData[0].cityValue = e.target.value
|
|
|
+ this.setTableData[0].cityValue = Number(e.target.value)
|
|
|
},
|
|
|
// 特价规则切换时清空数据
|
|
|
handleDiscountType (val) {
|
|
|
this.form.discountType = val
|
|
|
this.$refs.specialProduct.reSetTableData()
|
|
|
+ this.setTableData = [{
|
|
|
+ provinceValue: undefined,
|
|
|
+ cityValue: undefined,
|
|
|
+ specialValue: undefined
|
|
|
+ }]
|
|
|
},
|
|
|
// 导入
|
|
|
closeGuideModel () {
|