浏览代码

feat: 修改订单推ERP

xdd 4 天之前
父节点
当前提交
27c29f2c9d
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/hisStore/components/productOrder.vue

+ 3 - 2
src/views/hisStore/components/productOrder.vue

@@ -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);