This commit is contained in:
oneao committed 2026-03-30 17:29:18 +08:00
1 parent 69eda8b8ad
commit f6ed7abf5f
1 file changed
+10 -8
@@ -8,10 +8,7 @@ const props = defineProps({
},
});
const loading = reactive({
submit: false,
global: true,
});
const loading = ref(false);
const form = ref({
b_id: "",
@@ -34,7 +31,12 @@ function onOpened() {
}
function onClosed() {
console.log("对话框已关闭");
loading.value = true;
form.value = {
b_id: "",
b_container_no: "",
};
}
</script>
@@ -47,7 +49,7 @@ function onClosed() {
@closed="onClosed"
v-model="visible"
>
<div class="form-container" v-loading="loading.global">
<div class="form-container" v-loading="loading">
<!-- 箱号 -->
<div class="form-item">
<div class="label">箱号</div>
@@ -60,13 +62,13 @@ function onClosed() {
<template #footer>
<el-button :loading="loading.submit" @click="visible = false">
<el-icon class="el-icon--left">
<G3Icon icon="lucide:refresh-ccw" />
<G3Icon icon="lucide:x" />
</el-icon>
取消
</el-button>
<el-button type="primary">
<el-icon class="el-icon--left">
<G3Icon icon="lucide:cloud-download" />
<G3Icon icon="lucide:save" />
</el-icon>
保存
</el-button>