From 2fa5528e35c8ed3c05285d0c1accdd712df6e9de Mon Sep 17 00:00:00 2001 From: Shan Ao <178391389@qq.com> Date: Fri, 7 Feb 2025 11:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91=201.=20=E8=B4=A7=E8=BF=90?= =?UTF-8?q?=E8=BD=A6=E8=BE=86=E5=92=8C=E9=95=BF=E6=9C=9F=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E8=BF=9B=E6=B8=AF=E6=B2=A1=E6=9C=89=E8=A1=A8=E5=8D=95=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/sendUtil.vue | 29 ++++++++++-------- .../dangertruckcheck/components/sendUtil.vue | 30 +++++++++++-------- 2 files changed, 35 insertions(+), 24 deletions(-) diff --git a/src/views/longtermvehicleinputportmessage/auditChronicallyCar/components/sendUtil.vue b/src/views/longtermvehicleinputportmessage/auditChronicallyCar/components/sendUtil.vue index 3bf8196..e1737ce 100644 --- a/src/views/longtermvehicleinputportmessage/auditChronicallyCar/components/sendUtil.vue +++ b/src/views/longtermvehicleinputportmessage/auditChronicallyCar/components/sendUtil.vue @@ -127,19 +127,24 @@ export default { this.$parent.activeName = 'List' }, sendMessage() { - requestFN( - '/vehiclemessage/auditChronicallyCar', - { - FIRST_AUDIT_USER_ID: JSON.parse(sessionStorage.getItem('user')).USER_ID, - IS_AUDIT: this.form.STATUS, - VEHICLE_ID: this.VEHICLE_ID, - REMARK: this.form.OPINION + this.$refs.form.validate((valid) => { + if (!valid) { + return false } - ).then((data) => { - this.visible = false - this.$emit('refresh', '') - }).catch((e) => { - this.loading = false + requestFN( + '/vehiclemessage/auditChronicallyCar', + { + FIRST_AUDIT_USER_ID: JSON.parse(sessionStorage.getItem('user')).USER_ID, + IS_AUDIT: this.form.STATUS, + VEHICLE_ID: this.VEHICLE_ID, + REMARK: this.form.OPINION + } + ).then((data) => { + this.visible = false + this.$emit('refresh', '') + }).catch((e) => { + this.loading = false + }) }) } } diff --git a/src/views/truckinputportmanage/dangertruckcheck/components/sendUtil.vue b/src/views/truckinputportmanage/dangertruckcheck/components/sendUtil.vue index 82edfb4..ef73660 100644 --- a/src/views/truckinputportmanage/dangertruckcheck/components/sendUtil.vue +++ b/src/views/truckinputportmanage/dangertruckcheck/components/sendUtil.vue @@ -129,19 +129,25 @@ export default { this.$parent.activeName = 'List' }, sendMessage() { - requestFN( - '/vehiclemessage/qyAudit', - { - AUDITOR: JSON.parse(sessionStorage.getItem('user')).USER_ID, - VEHICLE_ID: this.VEHICLE_ID, - IS_AUDIT: this.form.STATUS, - REMARK: this.form.OPINION + this.$refs.form.validate((valid) => { + if (!valid) { + return false } - ).then((data) => { - this.visible = false - this.$emit('refresh', '') - }).catch((e) => { - this.loading = false + requestFN( + '/vehiclemessage/qyAudit', + { + AUDITOR: JSON.parse(sessionStorage.getItem('user')).USER_ID, + VEHICLE_ID: this.VEHICLE_ID, + IS_AUDIT: this.form.STATUS, + REMARK: this.form.OPINION + } + ).then((data) => { + this.visible = false + this.handleClose() + this.$emit('refresh', '') + }).catch((e) => { + this.loading = false + }) }) } }