diff --git a/src/components/inventory/apply/AddApply.vue b/src/components/inventory/apply/AddApply.vue index dc5554c..c06f995 100644 --- a/src/components/inventory/apply/AddApply.vue +++ b/src/components/inventory/apply/AddApply.vue @@ -144,6 +144,8 @@ import Mask from "@/components/common/Mask.vue"; const isShow = ref(false) const emit = defineEmits(['close']) const exit = () => { + initFormData() + tableList.value = [] isShow.value = false emit('close') } @@ -154,6 +156,14 @@ const formData = ref({ username: "", remark: '' }) +const initFormData = () => { + formData.value = { + useUserId: null, + name: '', + username: "", + remark: '' + } +} interface Inventory { goodId: string | number; diff --git a/src/views/inventory/apply.vue b/src/views/inventory/apply.vue index a20df55..43846ae 100644 --- a/src/views/inventory/apply.vue +++ b/src/views/inventory/apply.vue @@ -34,8 +34,38 @@
- - + + + + + + + + + + + + + + + + + + + +