274
This commit is contained in:
@@ -358,6 +358,18 @@
|
||||
return this.$message.error('请选择商品')
|
||||
}
|
||||
|
||||
for (let i = 0; i < this.form.goodsList.length; i++) {
|
||||
if (!this.form.goodsList[i].integralPrice) {
|
||||
return this.$message.error('请输入兑换所需积分')
|
||||
}
|
||||
if (!this.form.goodsList[i].payMoney && this.form.goodsList[i].goods.type === '1') {
|
||||
return this.$message.error('请输入兑换后补差价金额')
|
||||
}
|
||||
if (!this.form.goodsList[i].stock) {
|
||||
return this.$message.error('请输入库存')
|
||||
}
|
||||
}
|
||||
|
||||
this.instance.post(`/app/appintegralsupermarketshop/addOrUpdate`, {
|
||||
...this.form,
|
||||
id: this.params.id || '',
|
||||
|
||||
Reference in New Issue
Block a user