style: rename getStatusspan to getStatusText

update the function name in the OrderCard component to better reflect its purpose, as the original getStatusspan name was misleading
This commit is contained in:
DEV_DSW
2026-05-29 09:41:58 +08:00
parent 71d6033c28
commit a5eb9a042d

View File

@@ -14,7 +14,7 @@
'text-[12px]', 'text-[12px]',
`tag-${orderData.orderStatus || orderData.workOrderStatus}`, `tag-${orderData.orderStatus || orderData.workOrderStatus}`,
]"> ]">
{{ getStatusspan(orderData.orderStatus || orderData.workOrderStatus) }} {{ getStatusText(orderData.orderStatus || orderData.workOrderStatus) }}
</div> </div>
</div> </div>
@@ -93,7 +93,7 @@ const getOrderTypeName = () => {
}; };
// 获取状态文本 // 获取状态文本
const getStatusspan = (status) => { const getStatusText = (status) => {
// 工单情况orderType 为 undefined // 工单情况orderType 为 undefined
if (props.orderData.orderType === undefined) { if (props.orderData.orderType === undefined) {
const workOrderStatusMap = { const workOrderStatusMap = {