From 8746ebd8c37cee9a96090a887fcc890952984d2b Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Thu, 10 Apr 2025 16:01:32 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=80=97=E6=9D=90?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=B3=E9=97=AD=E5=90=8E=E9=83=A8=E5=88=86?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9C=AA=E9=87=8D=E7=BD=AE=E5=BC=95=E8=B5=B7?=
=?UTF-8?q?=E7=9A=84=E5=86=8D=E6=AC=A1=E6=B7=BB=E5=8A=A0=E6=8F=90=E7=A4=BA?=
=?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/inventory/consumables/components/add-haocai.vue | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/views/inventory/consumables/components/add-haocai.vue b/src/views/inventory/consumables/components/add-haocai.vue
index 224e90c..31988ad 100644
--- a/src/views/inventory/consumables/components/add-haocai.vue
+++ b/src/views/inventory/consumables/components/add-haocai.vue
@@ -40,7 +40,7 @@
-
+
@@ -100,6 +100,8 @@ const basicForm = {
conUnit: "",
price: undefined,
conWarning: undefined,
+ id: "",
+ isStock: 1,
};
const forms = ref([{ ...basicForm }]);
const form = reactive({
@@ -175,7 +177,7 @@ async function submitForms() {
}
}
function reset() {
- console.log("reset");
+ refform.value.resetFields();
Object.assign(form, basicForm);
console.log(form);
}