diff --git a/src/views/customer/sample/list/edit.vue b/src/views/customer/sample/list/edit.vue index 34a2da6..b6e9683 100644 --- a/src/views/customer/sample/list/edit.vue +++ b/src/views/customer/sample/list/edit.vue @@ -224,7 +224,7 @@ dataForm.value.customerId = getValue.id // 委托方id dataForm.value.customerName = getValue.customerName // 委托方名称 dataForm.value.phone = getValue.phone // 电话 - dataForm.value.postalCode = getValue.postalCode // 邮编 + dataForm.value.postalCode = getValue.postalCode || '' // 邮编 dataForm.value.customerAddress = getValue.fullAddress // 委托方地址 } } @@ -276,6 +276,7 @@ // 获取详细信息 const getInfo = () => { getSapmleDetail({ id: infoId.value }).then((res) => { + res.data.customerAddress = res.data.customerAddress.replace(/null/g, '') dataForm.value = res.data dataForm.value.ABC = res.data.abc for (const item of menu) { @@ -360,7 +361,7 @@ :class="{ 'detail-input': pageType === 'detail' }" disabled > -