路票填写存值错误

This commit is contained in:
fan 2023-01-28 10:59:01 +08:00
parent 3c7c4c3dfa
commit 9c9ccdbfc7

View File

@ -213,7 +213,7 @@ export default {
},
submit() {
let commitFlag = true;
const params = { ticket: { type: this.attachmentType }, stationCode: this.roleDeviceCode };
const params = { stationCode: this.roleDeviceCode, ticket: { type: this.attachmentType } };
if (this.attachmentType === 'RAIL_TICKET') {
if (!this.ticketForm.number || !this.ticketForm.tripNumber || !this.ticketForm.nextStation || !this.ticketForm.no) {
commitFlag = false;