From 0b167a92dbb2b397c966a49c2c5da18bcee29f33 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 7 May 2026 15:14:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=83=A8=E9=97=A8=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E6=9F=A5=E7=9C=8B=E6=AF=8F=E6=97=A5=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Select/SelectMch.vue | 3 + src/views/canteen/canteenDailyMenu/index.vue | 92 ++++++++++--------- src/views/canteenDailyDishes/index.vue | 36 +++++--- .../components/pay-setting-form.vue | 10 +- 4 files changed, 80 insertions(+), 61 deletions(-) diff --git a/src/components/Select/SelectMch.vue b/src/components/Select/SelectMch.vue index 3c112467..afb219d7 100644 --- a/src/components/Select/SelectMch.vue +++ b/src/components/Select/SelectMch.vue @@ -19,6 +19,8 @@ import { reactive } from "vue" import * as mchApi from "/@/api/wallet/mch-manage" +const emit = defineEmits(['update:modelValue']); + const selectId = defineModel() const props = withDefaults( @@ -71,6 +73,7 @@ async function getOptions() { state.options = data.records ?? [] if (props.autoFirst && state.options.length != 0) { state.selectId = state.options[0].id + emit("update:modelValue", state.selectId) } } finally { setTimeout(() => (state.loading = false), 500) diff --git a/src/views/canteen/canteenDailyMenu/index.vue b/src/views/canteen/canteenDailyMenu/index.vue index b1574eef..ee804da7 100644 --- a/src/views/canteen/canteenDailyMenu/index.vue +++ b/src/views/canteen/canteenDailyMenu/index.vue @@ -1,34 +1,26 @@