|
|
@@ -789,7 +789,8 @@ export default {
|
|
|
async editOrder(){
|
|
|
try {
|
|
|
// 先获取地址信息
|
|
|
- await this.handleAddress();
|
|
|
+ const response = await getStoreOrderAddress(this.order.id);
|
|
|
+ this.order.userAddress = response.address;
|
|
|
|
|
|
// 等待地址获取完成后打开编辑对话框
|
|
|
this.edit.open = true;
|
|
|
@@ -797,7 +798,7 @@ export default {
|
|
|
this.editForm.mark = this.order.mark;
|
|
|
this.editForm.orderType = this.order.orderType.toString();
|
|
|
this.editForm.status = this.order.status.toString();
|
|
|
- this.editForm.userAddress = this.order.userAddress.toString();
|
|
|
+ this.editForm.userAddress = response.address;
|
|
|
this.editForm.scheduleId = this.order.scheduleId;
|
|
|
} catch (error) {
|
|
|
console.error('获取地址失败:', error);
|