|
@@ -369,7 +369,7 @@
|
|
</template>
|
|
</template>
|
|
<script setup>
|
|
<script setup>
|
|
import { ref, reactive, computed } from 'vue';
|
|
import { ref, reactive, computed } from 'vue';
|
|
-import { showToast, Dialog } from 'vant';
|
|
|
|
|
|
+import { showToast, showDialog } from 'vant';
|
|
import axios from 'axios';
|
|
import axios from 'axios';
|
|
import config from '@/config/index.js';
|
|
import config from '@/config/index.js';
|
|
import soundbyteJpg from '../../assets/img/2025lameifenghui.png';
|
|
import soundbyteJpg from '../../assets/img/2025lameifenghui.png';
|
|
@@ -487,7 +487,7 @@ const beforeDelete = () => {
|
|
photo.value = [];
|
|
photo.value = [];
|
|
}
|
|
}
|
|
const filesize = () => showToast(lang.value[langType.value].fileSize);
|
|
const filesize = () => showToast(lang.value[langType.value].fileSize);
|
|
-const createTextDate = values => values.slice(0, 3).join('-') + '' + values.slice(3).join(':');
|
|
|
|
|
|
+const createTextDate = values => values.slice(0, 3).join('-') + ' ' + values.slice(3).join(':');
|
|
const packerConfirm = (values) => {
|
|
const packerConfirm = (values) => {
|
|
showBirthday.value = false;
|
|
showBirthday.value = false;
|
|
from.birthday = createTextDate(values.selectedValues);
|
|
from.birthday = createTextDate(values.selectedValues);
|
|
@@ -552,7 +552,10 @@ const beforeRead = () => {
|
|
};
|
|
};
|
|
|
|
|
|
// 选择权限范围
|
|
// 选择权限范围
|
|
|
|
+let loading= false
|
|
const onSubmit = () => {
|
|
const onSubmit = () => {
|
|
|
|
+ if (loading) return
|
|
|
|
+ loading = true
|
|
if (!showForm.value) {
|
|
if (!showForm.value) {
|
|
showForm.value = true;
|
|
showForm.value = true;
|
|
return;
|
|
return;
|
|
@@ -589,15 +592,17 @@ const onSubmit = () => {
|
|
checkOutTime: from.checkOutTime, // 离店时间
|
|
checkOutTime: from.checkOutTime, // 离店时间
|
|
remarks: from.message, // 备注
|
|
remarks: from.message, // 备注
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- showToast(lang.value[langType.value].registration);
|
|
|
|
// 清空表单内容 from
|
|
// 清空表单内容 from
|
|
// Object.keys(from).forEach((key) => {
|
|
// Object.keys(from).forEach((key) => {
|
|
// from[key] = '';
|
|
// from[key] = '';
|
|
// });
|
|
// });
|
|
- Dialog({
|
|
|
|
|
|
+ loading = false
|
|
|
|
+ showDialog({
|
|
message: lang.value[langType.value].registration,
|
|
message: lang.value[langType.value].registration,
|
|
})
|
|
})
|
|
- }).catch(() => {
|
|
|
|
|
|
+ }).catch((err) => {
|
|
|
|
+ console.log(err);
|
|
|
|
+ loading = false
|
|
showToast(lang.value[langType.value].registrationError);
|
|
showToast(lang.value[langType.value].registrationError);
|
|
});
|
|
});
|
|
};
|
|
};
|