This commit is contained in:
yanran200730
2023-04-18 08:51:26 +08:00
parent 4e54061671
commit 5b4443f41f

View File

@@ -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 || '',