Commit 35eaa3cd by zhangxw

修改过户资料bug修复

1 parent 7f3c84eb
......@@ -96,7 +96,7 @@ export default class UploadTransferringOrder extends Vue {
if (this.auctionOrder) {
this.formState.registrationCertificate = this.auctionOrder.registrationCertificate || [];
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.newPlateNumber = this.auctionOrder.newPlateNumber || '';
}
......@@ -136,8 +136,12 @@ export default class UploadTransferringOrder extends Vue {
};
console.log(params)
TransactionController.proxyUploadTransferMaterials(this.axios, params).then(res => {
message.success('提交成功');
this.$emit('handleOk');
if (res.data.code == 200) {
message.success('提交成功');
this.$emit('handleOk');
} else {
message.error(res.data.message)
}
}).catch(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!