Compare commits
No commits in common. "125c2c9a00887a3db908f2099f5ac0055b399c2f" and "079de81427409c6faf0e32eb9708403ec3abb743" have entirely different histories.
125c2c9a00
...
079de81427
|
@ -127,24 +127,25 @@ export default {
|
||||||
this.$parent.activeName = 'List'
|
this.$parent.activeName = 'List'
|
||||||
},
|
},
|
||||||
sendMessage() {
|
sendMessage() {
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate(valid => {
|
||||||
if (!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 {
|
||||||
return false
|
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
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,25 +129,19 @@ export default {
|
||||||
this.$parent.activeName = 'List'
|
this.$parent.activeName = 'List'
|
||||||
},
|
},
|
||||||
sendMessage() {
|
sendMessage() {
|
||||||
this.$refs.form.validate((valid) => {
|
requestFN(
|
||||||
if (!valid) {
|
'/vehiclemessage/qyAudit',
|
||||||
return false
|
{
|
||||||
|
AUDITOR: JSON.parse(sessionStorage.getItem('user')).USER_ID,
|
||||||
|
VEHICLE_ID: this.VEHICLE_ID,
|
||||||
|
IS_AUDIT: this.form.STATUS,
|
||||||
|
REMARK: this.form.OPINION
|
||||||
}
|
}
|
||||||
requestFN(
|
).then((data) => {
|
||||||
'/vehiclemessage/qyAudit',
|
this.visible = false
|
||||||
{
|
this.$emit('refresh', '')
|
||||||
AUDITOR: JSON.parse(sessionStorage.getItem('user')).USER_ID,
|
}).catch((e) => {
|
||||||
VEHICLE_ID: this.VEHICLE_ID,
|
this.loading = false
|
||||||
IS_AUDIT: this.form.STATUS,
|
|
||||||
REMARK: this.form.OPINION
|
|
||||||
}
|
|
||||||
).then((data) => {
|
|
||||||
this.visible = false
|
|
||||||
this.handleClose()
|
|
||||||
this.$emit('refresh', '')
|
|
||||||
}).catch((e) => {
|
|
||||||
this.loading = false
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue