Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb_region
| | |
| | | |
| | | /** 确认按钮 */ |
| | | submitForm() { |
| | | // if (this.objs.reservationTime && this.data.dwDeptId) { |
| | | // 防止重复点击 |
| | | if (this.loading) { |
| | | return; |
| | | } |
| | | |
| | | if (this.objs.reservationTime) { |
| | | let data = { |
| | | copeWith: this.ListObj.hjMoney, |
| | |
| | | yxts: this.objs.yxts, |
| | | dwId: this.data.dwId, |
| | | }; |
| | | |
| | | // 开启全屏loading |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: '正在提交数据,请稍候...', |
| | | 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("请填写带星号内容"); |
| | |
| | | }); |
| | | }, |
| | | 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)) { |
| | |
| | | _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 { |