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