chenyc
2023-06-04 b8ce0e7f0652aab9d9b0df9c5fbaebd924d31cc2
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,