From 18c0827f5acaf3463bc4966ed45dd3c8ae9475c5 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 17 Apr 2023 17:34:30 +0800 Subject: [PATCH 1/6] 264 --- .../app/AppIntegratingSupermarket/components/StoreList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/fengdu/app/AppIntegratingSupermarket/components/StoreList.vue b/project/fengdu/app/AppIntegratingSupermarket/components/StoreList.vue index f7ec37ed..7ebbec07 100644 --- a/project/fengdu/app/AppIntegratingSupermarket/components/StoreList.vue +++ b/project/fengdu/app/AppIntegratingSupermarket/components/StoreList.vue @@ -130,7 +130,7 @@ remove (id) { this.$confirm('确定删除该商品吗?').then(() => { - this.instance.post(`/app/appintegralsupermarketgoods/delete?id=${id}`).then(res => { + this.instance.post(`/app/appintegralsupermarketshop/delete?id=${id}`).then(res => { if (res.code == 0) { this.$message.success('删除成功!') this.getList() From ff55cd42ba58799d3eb4c159d627ca808fd302a2 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 17 Apr 2023 17:42:34 +0800 Subject: [PATCH 2/6] 266 --- .../AppIntegratingSupermarket/components/StoreList.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/project/fengdu/app/AppIntegratingSupermarket/components/StoreList.vue b/project/fengdu/app/AppIntegratingSupermarket/components/StoreList.vue index 7ebbec07..c5dd2ef7 100644 --- a/project/fengdu/app/AppIntegratingSupermarket/components/StoreList.vue +++ b/project/fengdu/app/AppIntegratingSupermarket/components/StoreList.vue @@ -14,7 +14,7 @@ v-model="search.status" @change="(search.current = 1), getList()" placeholder="请选择状态" - :selectList="dict.getDict('integralSGStatus')"> + :selectList="dict.getDict('integralSSStatus')"> @@ -118,7 +118,7 @@ return { search: { goodsType: '', - title: '', + goodsTitle: '', current: 1, status: '', size: 10, From 5b4443f41f43f81e2e213c60f11f835a7dc77bbb Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 18 Apr 2023 08:51:26 +0800 Subject: [PATCH 6/6] 274 --- .../components/AddStore.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue b/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue index 6f18ac76..3a281b81 100644 --- a/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue +++ b/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue @@ -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 || '',