Selaa lähdekoodia

feat: 修改订单推ERP

xdd 4 päivää sitten
vanhempi
commit
27c29f2c9d
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  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);