feat: 订单详情交互调整
This commit is contained in:
@@ -70,14 +70,8 @@ const displayItems = computed(() => {
|
||||
const { orderData } = props;
|
||||
const { orderType } = orderData;
|
||||
|
||||
// 工单情况:orderType 为 undefined
|
||||
if (orderType === undefined) {
|
||||
return [
|
||||
{ label: LABELS.CREATE_TIME, value: orderData.createTime },
|
||||
{ label: LABELS.CONTACT_GUEST, value: orderData.userName },
|
||||
{ label: LABELS.CONTACT_PHONE, value: orderData.userPhone },
|
||||
];
|
||||
}
|
||||
// 去掉末尾连续、、
|
||||
const formattedPhone = orderData.contactPhone.replace(/、+$/, "");
|
||||
|
||||
// 订单情况:根据 orderType 返回不同的显示项
|
||||
switch (orderType) {
|
||||
@@ -97,7 +91,7 @@ const displayItems = computed(() => {
|
||||
),
|
||||
},
|
||||
{ label: LABELS.VISITOR_NAME, value: orderData.visitorName },
|
||||
{ label: LABELS.CONTACT_PHONE, value: orderData.contactPhone },
|
||||
{ label: LABELS.CONTACT_PHONE, value: formattedPhone },
|
||||
];
|
||||
|
||||
case ORDER_TYPES.TICKET:
|
||||
|
||||
Reference in New Issue
Block a user