From b8ce0e7f0652aab9d9b0df9c5fbaebd924d31cc2 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期日, 04 六月 2023 09:52:24 +0800
Subject: [PATCH] upbug

---
 src/views/jifenShangCheng/components/dizhi.vue |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/views/jifenShangCheng/components/dizhi.vue b/src/views/jifenShangCheng/components/dizhi.vue
index c8a2287..6e354d6 100644
--- a/src/views/jifenShangCheng/components/dizhi.vue
+++ b/src/views/jifenShangCheng/components/dizhi.vue
@@ -51,6 +51,7 @@
     const addressEditRef = ref<AddressEditInstance>()
     const chosenAddressId = ref(1)
     const addressInfo=ref({
+        code:'',
         id:0,
         name:'',
         addressDetail:'',
@@ -130,6 +131,7 @@
         console.log('用户信息')
         console.log(userInfo.patient)
         addressInfo.value={
+            code:'',
             id:0,
             name:userInfo.patient.patientInfo.patientName,
             addressDetail:userInfo.patient.patientInfo.patientAddress,
@@ -144,6 +146,7 @@
     const onEdit = (item:any, index:number) =>{
         console.log(item,index)
         addressInfo.value={
+            code:item.code,
             id:item.id,
             name:item.name,
             addressDetail:item.address,
@@ -160,6 +163,7 @@
         const pasm={
             addressArea: [form.city,form.county].toString(),
             id: addressInfo.value.id,
+            code:addressInfo.value.code,
             patientAddress: form.addressDetail,
             patientCode: userInfo.patient.patientInfo.code,
             patientIsDefault: form.isDefault===true?1:0,

--
Gitblit v1.8.0