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:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user