Commit 35eaa3cd by zhangxw

修改过户资料bug修复

1 parent 7f3c84eb
...@@ -96,7 +96,7 @@ export default class UploadTransferringOrder extends Vue { ...@@ -96,7 +96,7 @@ export default class UploadTransferringOrder extends Vue {
if (this.auctionOrder) { if (this.auctionOrder) {
this.formState.registrationCertificate = this.auctionOrder.registrationCertificate || []; this.formState.registrationCertificate = this.auctionOrder.registrationCertificate || [];
this.formState.vehicleLicense = this.auctionOrder.vehicleLicense || []; this.formState.vehicleLicense = this.auctionOrder.vehicleLicense || [];
this.formState.transferInvoice = this.auctionOrder.transferInvoice || null; this.formState.transferInvoice = (this.auctionOrder.transferInvoice && this.auctionOrder.transferInvoice[0]) || null;
this.formState.newOwnerIdCard = this.auctionOrder.newOwnerIdCard || []; this.formState.newOwnerIdCard = this.auctionOrder.newOwnerIdCard || [];
this.formState.newPlateNumber = this.auctionOrder.newPlateNumber || ''; this.formState.newPlateNumber = this.auctionOrder.newPlateNumber || '';
} }
...@@ -136,8 +136,12 @@ export default class UploadTransferringOrder extends Vue { ...@@ -136,8 +136,12 @@ export default class UploadTransferringOrder extends Vue {
}; };
console.log(params) console.log(params)
TransactionController.proxyUploadTransferMaterials(this.axios, params).then(res => { TransactionController.proxyUploadTransferMaterials(this.axios, params).then(res => {
message.success('提交成功'); if (res.data.code == 200) {
this.$emit('handleOk'); message.success('提交成功');
this.$emit('handleOk');
} else {
message.error(res.data.message)
}
}).catch(err => { }).catch(err => {
console.error('提交失败:', err); console.error('提交失败:', err);
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!