From 3e812a05de12137872015ff39104b0065363e12e Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期五, 08 八月 2025 08:38:20 +0800 Subject: [PATCH] 1 --- src/views/system/tijian/index.vue | 3 +++ src/views/reservation/resercopy/index.vue | 23 ++++++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletions(-) diff --git a/src/views/reservation/resercopy/index.vue b/src/views/reservation/resercopy/index.vue index f05c814..36cd621 100644 --- a/src/views/reservation/resercopy/index.vue +++ b/src/views/reservation/resercopy/index.vue @@ -840,7 +840,11 @@ /** 纭鎸夐挳 */ submitForm() { - // if (this.objs.reservationTime && this.data.dwDeptId) { + // 闃叉閲嶅鐐瑰嚮 + if (this.loading) { + return; + } + if (this.objs.reservationTime) { let data = { copeWith: this.ListObj.hjMoney, @@ -850,10 +854,27 @@ yxts: this.objs.yxts, dwId: this.data.dwId, }; + + // 寮�鍚叏灞弆oading + const loading = this.$loading({ + lock: true, + text: '姝e湪鎻愪氦鏁版嵁锛岃绋嶅��...', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + + this.loading = true; newConfirm(data).then((res) => { + this.loading = false; + loading.close(); // 鍏抽棴鍏ㄥ睆loading this.$modal.msgSuccess("鎻愪氦鎴愬姛"); this.confirm = true; this.userList = []; + }).catch((error) => { + this.loading = false; + loading.close(); // 鍏抽棴鍏ㄥ睆loading + console.error("鎻愪氦澶辫触:", error); + this.$modal.msgError("鎻愪氦澶辫触锛岃閲嶈瘯"); }); } else { this.$modal.msgError("璇峰~鍐欏甫鏄熷彿鍐呭"); diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index 20355f0..d23f345 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -1374,6 +1374,8 @@ }); }, inputChange() { + + const reg = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/; if (reg.test(this.form.cusIdcard)) { @@ -1817,6 +1819,7 @@ _this.top = false; if (response.data) { this.form = response.data; + this.form.firmDeptName = response.data.department; if (this.form.discount === null) { this.discount = 10; } else { -- Gitblit v1.8.0