点击提交申请时将弹窗数据重置为默认

This commit is contained in:
赵毅 2025-09-12 09:06:42 +08:00
parent 998a14c878
commit 5cb0984e00

View File

@ -273,7 +273,10 @@ export default {
showSize: false,// showSize: false,//
currentGG: {},// currentGG: {},//
currentGGIndex: 0, currentGGIndex: 0,
afterSalesType: 0, // 1:退 2:退退 3: afterSalesType: 2, // 1:退 2:退退 3:
merchantContact: '', //
merchantAddress: '', //
refundDescription: '', refundDescription: '',
refundMethod: '自行寄回', refundMethod: '自行寄回',
@ -361,6 +364,9 @@ export default {
console.log('售后商品 - 选中的售后类型:', selectedType); console.log('售后商品 - 选中的售后类型:', selectedType);
console.log('选中的售后商品:', this.selectedAsGood); console.log('选中的售后商品:', this.selectedAsGood);
this.merchantContact = `${this.orderItem.supplier_name} ${this.orderItem.supplier_phone}`;
this.merchantAddress = this.orderItem.supplier_address;
this.afterSalePopup = false; this.afterSalePopup = false;
this.afterSalePopup2 = true; this.afterSalePopup2 = true;
}, },
@ -510,8 +516,8 @@ export default {
postage: 0, // 0 postage: 0, // 0
refundDescription: this.refundDescription, refundDescription: this.refundDescription,
refundMethod: this.refundMethod, refundMethod: this.refundMethod,
merchantAddress: this.orderItem.receiving_address, merchantAddress: this.orderItem.supplier_address,
merchantContact: `${this.orderItem.receiving_name} ${this.orderItem.receiving_phone}`, merchantContact: `${this.orderItem.supplier_name} ${this.orderItem.supplier_phone}`,
imgList: this.imgList, imgList: this.imgList,
changeServiceId: this.changeServiceId, changeServiceId: this.changeServiceId,
}; };
@ -520,6 +526,28 @@ export default {
this.afterSalePopup3 = false; this.afterSalePopup3 = false;
// 退 // 退
this.$emit('refundSubmitted', refundInfo); this.$emit('refundSubmitted', refundInfo);
//
this.resetAfterSaleData();
},
//
resetAfterSaleData() {
this.selectedAsGood = '';
this.selectedAfterSaleType = 0; // 0:退/退, 1:
this.selectedAfterSaleType2 = 0; // 0:退/退, 1:退
this.selectedAsReason = 0;
this.selectedReason = 0; //
this.selectedServiceType = '';
this.selectedRefundReason = '';
this.changeRefundReason = ''; //
this.changeServiceName = ''; //
this.changeServiceId = ''; // id
this.changeGoodsList = []; //
this.currentGG = {}; //
this.currentGGIndex = 0;
this.refundDescription = '';
this.imgList = [];
} }
} }
}; };