From 5773bf718397e8a7073b935d989259ef0cb29219 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 05 二月 2024 19:20:34 +0800
Subject: [PATCH] Merge branch 'reportWorkAppFile/reportWorkApp' of http://192.168.5.5:10010/r/web/bulletin-board-style1 into reportWorkAppFile/reportWorkApp

---
 src/views/dashboard/components/ReportProductionModal.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/views/dashboard/components/ReportProductionModal.vue b/src/views/dashboard/components/ReportProductionModal.vue
index f48da66..ec61c1b 100644
--- a/src/views/dashboard/components/ReportProductionModal.vue
+++ b/src/views/dashboard/components/ReportProductionModal.vue
@@ -24,8 +24,9 @@
 import { useVModel } from '@vueuse/core'
 import BigButton from './BigButton.vue'
 import { ref, watch } from 'vue'
-const props = withDefaults(defineProps<{ modelValue: boolean }>(), {
-  modelValue: false
+const props = withDefaults(defineProps<{ modelValue: boolean; amount?: number }>(), {
+  modelValue: false,
+  amount: 0
 })
 const emit = defineEmits<{
   'update:modelValue': [show: boolean]
@@ -72,7 +73,7 @@
 }
 watch(modelData, () => {
   if (modelData.value) {
-    inputNumber.value = ''
+    inputNumber.value = (props.amount ?? '').toString()
   }
 })
 </script>

--
Gitblit v1.8.0