Compare commits

...

2 Commits

Author SHA1 Message Date
Shan Ao 125c2c9a00 Merge remote-tracking branch 'origin/pet_门口门禁' into pet_门口门禁
# Conflicts:
#	src/views/longtermvehicleinputportmessage/auditChronicallyCar/components/sendUtil.vue
2025-02-07 11:03:15 +08:00
Shan Ao 2fa5528e35 【bug】
1. 货运车辆和长期车辆进港没有表单校验
2025-02-07 11:02:15 +08:00
2 changed files with 34 additions and 29 deletions

View File

@ -127,25 +127,24 @@ export default {
this.$parent.activeName = 'List'
},
sendMessage() {
this.$refs.form.validate(valid => {
if (valid) {
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
})
} else {
this.$refs.form.validate((valid) => {
if (!valid) {
return 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
})
})
}
}

View File

@ -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
})
})
}
}