From a3da940105ad99bcb25593e885abefff8514531a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Mon, 2 Dec 2024 15:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=9B=A2=E6=8A=96=E9=9F=B3=E6=A0=B8?= =?UTF-8?q?=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order_manage/meituan.vue | 204 ++++++++++++++++++ src/views/product/add_shop.vue | 19 ++ .../Instead/components/choose-quan-goods.vue | 32 ++- .../Instead/components/popup-quan-hexiao.vue | 76 +++---- 4 files changed, 268 insertions(+), 63 deletions(-) create mode 100644 src/views/order_manage/meituan.vue diff --git a/src/views/order_manage/meituan.vue b/src/views/order_manage/meituan.vue new file mode 100644 index 0000000..42baab1 --- /dev/null +++ b/src/views/order_manage/meituan.vue @@ -0,0 +1,204 @@ + + + diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue index e468e83..ad009ed 100644 --- a/src/views/product/add_shop.vue +++ b/src/views/product/add_shop.vue @@ -1049,6 +1049,25 @@ export default { } else { await tbProductPost(this.form); } + // 点击确定之后自动删除上面的导航栏 + try { + let view = this.$store.state.tagsView.visitedViews[this.$store.state.tagsView.visitedViews.findIndex(item => item.name === 'add_shop')] + // 删除导航栏 + this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => { + // 默认保存成功删除上面add_shop导航栏 + const latestView = visitedViews.slice(-1)[0] + if (latestView) { + this.$router.push(latestView) + } else { + if (view.name === 'Dashboard') { + // to reload home page + this.$router.replace({ path: '/redirect' + view.fullPath }) + } else { + this.$router.push('/') + } + } + }) + } catch (error) { } this.$notify({ title: "成功", message: `${this.form.id ? "编辑" : "添加"}成功`, diff --git a/src/views/tool/Instead/components/choose-quan-goods.vue b/src/views/tool/Instead/components/choose-quan-goods.vue index 056bc6b..a3b00e1 100644 --- a/src/views/tool/Instead/components/choose-quan-goods.vue +++ b/src/views/tool/Instead/components/choose-quan-goods.vue @@ -2,28 +2,21 @@
- +
取消 - 确认核销 + 确认核销
- - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/tool/Instead/components/popup-quan-hexiao.vue b/src/views/tool/Instead/components/popup-quan-hexiao.vue index cee7ba8..dc96a78 100644 --- a/src/views/tool/Instead/components/popup-quan-hexiao.vue +++ b/src/views/tool/Instead/components/popup-quan-hexiao.vue @@ -3,40 +3,22 @@
- {{ item.text }} + {{ item.text }}
- +
- +
取消 - 确定 + 确定
@@ -44,13 +26,10 @@ - +
- - -